rsnext/examples/with-jotai
Arian a2e3b27dfc
Migrate the with-jotai example from page router to app router (#63390)
## Migrate the with-jotai example from page router to app router

Please if it needs further updates, Let me know!
Happy to contribute

---------

Co-authored-by: Sam Ko <sam@vercel.com>
2024-03-18 21:28:29 +00:00
..
app Migrate the with-jotai example from page router to app router (#63390) 2024-03-18 21:28:29 +00:00
components Migrate the with-jotai example from page router to app router (#63390) 2024-03-18 21:28:29 +00:00
public Examples: Jotai (#27940) 2021-08-14 04:06:49 +00:00
styles chore(examples): more practical jotai example (#45973) 2023-02-16 12:33:30 +00:00
.gitignore Add .yarn/install-state.gz to .gitignore (#56637) 2023-10-18 16:34:48 +00:00
next-env.d.ts Remove incorrect entries for pnpm debug log (#47241) 2023-03-26 22:26:05 -07:00
next.config.js chore(examples): use default prettier for examples/templates (#60530) 2024-01-11 16:01:44 -07:00
package.json Migrate the with-jotai example from page router to app router (#63390) 2024-03-18 21:28:29 +00:00
README.md update example Deploy button URLs (#48842) 2023-04-26 13:31:44 -04:00
tsconfig.json Migrate the with-jotai example from page router to app router (#63390) 2024-03-18 21:28:29 +00:00

Jotai example

This example shows how to integrate Jotai in Next.js.

  • Jotai is a primitive and flexible state management library for React.
  • Jotai is TypeScript oriented and aims to expose a minimalistic API for dealing with state in a data-flow graph way.

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-jotai with-jotai-app
yarn create next-app --example with-jotai with-jotai-app
pnpm create next-app --example with-jotai with-jotai-app

Deploy it to the cloud with Vercel (Documentation).