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 && yarn
# move to the examples folder & install dependencies
cd examples/todos_with_atomFamily_and_localStorage && yarn
# start the dev server
yarn start
Link: https://githubbox.com/pmndrs/jotai/tree/main/examples/todos_with_atomFamily