diff options
author | 2023-08-11 10:05:02 -0400 | |
---|---|---|
committer | 2023-08-11 10:05:02 -0400 | |
commit | 519a1c4e8407c7abcb8d879b67a9f4b960652cae (patch) | |
tree | 1d102fa0e3a64e885d9872c2ed944f76ca10a16c /examples/framework-multiple/src/components/SolidCounter.tsx | |
parent | 2ee418e06ab1f7855dee0078afbad0b06de3b183 (diff) | |
download | astro-519a1c4e8407c7abcb8d879b67a9f4b960652cae.tar.gz astro-519a1c4e8407c7abcb8d879b67a9f4b960652cae.tar.zst astro-519a1c4e8407c7abcb8d879b67a9f4b960652cae.zip |
JSX refactor (#7924)
* JSX refactor
* Get preact/compat test to pass
* Use include config
* Remove old astro flavored markdown test
* Move babel dep to preact
* Remove errant debugger
* Update lockfile
* Update the multi-framework example
* Update e2e tests
* Fix nested-in-vue tests
* Add back in astro check
* Update packages/astro/src/core/create-vite.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/core/create-vite.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/integrations/solid/src/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/integrations/solid/src/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update .changeset/perfect-horses-tell.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Move the comment about the include config
* Remove redundant alias config
* Use react's own preamble code
* Use the base for the preamble
* Remove solid redundancy
* Update .changeset/perfect-horses-tell.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update based on review comments
* Oops
---------
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'examples/framework-multiple/src/components/SolidCounter.tsx')
-rw-r--r-- | examples/framework-multiple/src/components/SolidCounter.tsx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/framework-multiple/src/components/SolidCounter.tsx b/examples/framework-multiple/src/components/SolidCounter.tsx deleted file mode 100644 index 153feaddc..000000000 --- a/examples/framework-multiple/src/components/SolidCounter.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** @jsxImportSource solid-js */ - -import { createSignal } from 'solid-js'; - -/** A counter written with Solid */ -export default function SolidCounter({ children }) { - const [count, setCount] = createSignal(0); - const add = () => setCount(count() + 1); - const subtract = () => setCount(count() - 1); - - return ( - <> - <div id="solid" class="counter"> - <button onClick={subtract}>-</button> - <pre>{count()}</pre> - <button onClick={add}>+</button> - </div> - <div class="counter-message">{children}</div> - </> - ); -} |