Skip to content

I used this project to test and learn Recoil. First I found it frustrating to work with atoms and selectors in components, but in the end, I was happy with encapsulating the Recoil API in custom hooks. I used posts and comments from https://jsonplaceholder.typicode.com as mock API. When you add comments they will not be really saved. The example…

License

Notifications You must be signed in to change notification settings

ltwlf/react-recoil-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recoil State Management Example

Node.js CI

I used this project to test and learn Recoil. First I found it frustrating to work with atoms and selectors in components, but in the end, I was happy with encapsulating the Recoil API in custom hooks. I used posts and comments from https://jsonplaceholder.typicode.com as mock API. When you add comments they will not be really saved. The example has zero stylings and is not perfect, but helped me to get familiar with Recoil.

Read more...

Gitpod ready-to-code

Edit react-recoil-state-management-example

Usage

In the project directory, you can run:

yarn start

Open http://localhost:3000 to view it in the browser.

or

yarn test

Launches the test runner

Hope you find it useful. Glad for any feedback or ideas for improvement!

About

I used this project to test and learn Recoil. First I found it frustrating to work with atoms and selectors in components, but in the end, I was happy with encapsulating the Recoil API in custom hooks. I used posts and comments from https://jsonplaceholder.typicode.com as mock API. When you add comments they will not be really saved. The example…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published