Back to Next Js

Recoil Example

examples/with-recoil/README.md

16.2.81.2 KB
Original Source

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

How to use

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

bash
npx create-next-app --example with-recoil with-recoil-app
bash
yarn create next-app --example with-recoil with-recoil-app
bash
pnpm create next-app --example with-recoil with-recoil-app

Deploy it to the cloud with Vercel (Documentation).