Clone this project locally. Get inside the cloned folder. Then follow commands.
npm install
npm start
-
Shows how state is being managed without shifting component states to ancestors.
-
State can be used anywhere within same folder or even outside it.
This reminds me of useSelector and useDispatch hooks from redux. They server the same purpose as useRecoilState and useRecoilValue does
-
The impressive fact is the simplicity in setup. Redux would have taken more know-how and setup time. For small yet complex projects, Recoil.js is really nice.