Recoil: How a new JS library to handle React state…

MDN
3 min readNov 20, 2020
brb

Component state in React is passed through Parent and Child, which requires the use of Props to pass state.

Definition taken from the Recoil API:

‘Recoil lets you create a data-flow graph that flows from atoms (shared state) through selectors (pure functions) and down into your React components. Atoms are units of state that components can subscribe…

--

--