blob: 163c9129a1c1f0d8d402469934927259fc5d9083 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# Astro Example: Nanostores
```sh
npm create astro@latest -- --template with-nanostores
```
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/with-nanostores)
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/with-nanostores)
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/with-nanostores/devcontainer.json)
This example showcases using [`nanostores`](https://github.com/nanostores/nanostores) to provide shared state between components of any framework. [**Read our documentation on sharing state**](https://docs.astro.build/en/core-concepts/sharing-state/) for a complete breakdown of this project, along with guides to use React, Vue, Svelte, or Solid!
|