diff options
author | 2022-02-08 17:38:00 -0600 | |
---|---|---|
committer | 2022-02-08 17:38:00 -0600 | |
commit | 1abb9ed0800989f47351cc916f19fd8e0672e2c0 (patch) | |
tree | d67408ce66dce3d516c94b936339e76d1ff08829 /examples/with-nanostores/src | |
parent | cc436b4ce83402b19d163e0911bcef000cf9e7fb (diff) | |
download | astro-1abb9ed0800989f47351cc916f19fd8e0672e2c0.tar.gz astro-1abb9ed0800989f47351cc916f19fd8e0672e2c0.tar.zst astro-1abb9ed0800989f47351cc916f19fd8e0672e2c0.zip |
Upgrade Vite to latest (#2424)
* chore: unvendor vite
* chore: upgrade vue and svelte
* feat(renderer-solid): upgrade for vite@2.7.x
* chore: update yarn.lock
* fix(solid): upgrade solid renderer for vite@2.7.x
* test: improve css test
* chore: upgrade to vite@2.8.0-beta.3
* fix: replace hacky serialization with 'serialize-javascript'
* fix: externalize serialize-javascript
* fix: explicitly add execa@6.x.x to devDependencies
* test(css): skip css?url test
* chore: update vite-plugin-svelte
* fix: ssr option
* chore: update changeset
* chore: remove changeset
* chore: add changeset
* chore: add back missing changeset
* chore: update vite
* chore: update to latest vite
* test: update proload?
* chore: update dependencies
* fix: remove preact from nanostores example
* fix: update static-build-pkg to use `.mjs` extension
* fix: exclude './server.js' from custom-elements test
* chore: remove unused file
Diffstat (limited to 'examples/with-nanostores/src')
-rw-r--r-- | examples/with-nanostores/src/components/AdminsPreact.jsx | 30 | ||||
-rw-r--r-- | examples/with-nanostores/src/pages/index.astro | 2 |
2 files changed, 0 insertions, 32 deletions
diff --git a/examples/with-nanostores/src/components/AdminsPreact.jsx b/examples/with-nanostores/src/components/AdminsPreact.jsx deleted file mode 100644 index 2f93ed437..000000000 --- a/examples/with-nanostores/src/components/AdminsPreact.jsx +++ /dev/null @@ -1,30 +0,0 @@ -import { h, Fragment } from 'preact'; -import { useStore } from '@nanostores/preact'; - -import { admins } from '../store/admins.js'; -import { counter, increaseCounter, decreaseCounter } from '../store/counter.js'; - -const AdminsPreact = () => { - const list = useStore(admins); - const count = useStore(counter); - - return ( - <> - <h1>Preact</h1> - <ul> - {list.map((admin) => ( - <li key={admin.id}>{JSON.stringify(admin, null, 2)}</li> - ))} - </ul> - <div> - <h3>Counter</h3> - <p>{count.value}</p> - <button onClick={decreaseCounter}>-1</button> - <button onClick={increaseCounter}>+1</button> - </div> - <br /> - </> - ); -}; - -export default AdminsPreact; diff --git a/examples/with-nanostores/src/pages/index.astro b/examples/with-nanostores/src/pages/index.astro index 424384933..5aba10e8a 100644 --- a/examples/with-nanostores/src/pages/index.astro +++ b/examples/with-nanostores/src/pages/index.astro @@ -3,7 +3,6 @@ import AdminsReact from '../components/AdminsReact.jsx'; import AdminsSvelte from '../components/AdminsSvelte.svelte'; import AdminsVue from '../components/AdminsVue.vue'; -import AdminsPreact from '../components/AdminsPreact.jsx'; import AdminsSolid from '../components/AdminsSolid.jsx'; // Full Astro Component Syntax: @@ -46,7 +45,6 @@ import AdminsSolid from '../components/AdminsSolid.jsx'; <AdminsReact client:load /> <AdminsSvelte client:load /> <AdminsVue client:load /> - <AdminsPreact client:load /> <AdminsSolid client:load /> </main> </body> |