Back to Jotai

Todos with atomFamily

examples/todos_with_atomFamily/README.md

2.19.11023 B
Original Source

Todos with atomFamily

⚠️ Note: atomFamily from jotai/utils is deprecated and will be removed in v3. For new projects, please use the jotai-family package instead.

Description

Implement a todo list using atomFamily and localStorage. You can save your todo list by clicking Save to localStorage, then restore it by clicking Load from localStorage.

Set up locally

bash
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

Set up on StackBlitz

Link: https://stackblitz.com/github/pmndrs/jotai/tree/main/examples/todos_with_atomFamily