rsnext/examples/with-recoil
2022-05-27 21:21:40 +00:00
..
components Adding Example: with-recoil (#13380) 2020-06-08 21:33:08 -04:00
lib [with-recoil example] use functional form of state updaters for simplicity (#14014) 2020-06-13 09:04:34 +00:00
pages Adding Example: with-recoil (#13380) 2020-06-08 21:33:08 -04:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
package.json Remove licence from all example/package.json that has them (#28007) 2021-08-14 10:48:39 -05:00
README.md Update pnpm create next-app for latest pnpm 6 and 7 (#37254) 2022-05-27 21:21:40 +00:00

Recoil Example

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

Recoil is an experimental set of utilities for state management with React used by some teams at Facebook. This example takes the code from the redux examples and demonstrates how it would be implemented with Recoil.

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-recoil with-recoil-app
# or
yarn create next-app --example with-recoil with-recoil-app
# or
pnpm create next-app --example with-recoil with-recoil-app

Deploy it to the cloud with Vercel (Documentation).