Implement a todo list using atomFamily and localStorage, you can store your todo list to localStorage by click Save to localStorage
, then remove your todo list and restore them by click Load from localStorage
.
git clone https://github.com/pmndrs/jotai
# install project dependencies & build the library
cd jotai && pnpm install
# move to the examples folder & install dependencies
cd examples/todos_with_atomFamily && pnpm install
# start the dev server
pnpm dev
Link: https://stackblitz.com/github/pmndrs/jotai/tree/main/examples/todos_with_atomFamily