facebookexperimental / Recoil

Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
https://recoiljs.org/
MIT License
19.59k stars 1.18k forks source link

[docs] Make persistence docs copy-and-paste friendly #201

Open jaredpalmer opened 4 years ago

jaredpalmer commented 4 years ago

Rewrite example code with localStorage or AsyncStorage.

https://recoiljs.org/docs/guides/persistence#saving-state

drarmstr commented 4 years ago

Let's hold off really working on the docs until the new API is out.. With the new API we also hope to bundle a utility for providing URL persistence. It might be an interesting contribution to then provide a utility for localStorage, &c. in addition to documentation examples.