react

React child component can't get the atom value in Recoil

React child component can't get the atom value in Recoil

I’ve been using Recoil, a state management library for React, for a while now, so I’ll write some tips. Environment react 16.14.x recoil 0.1.2 Cannot get atom value from child component in Recoil While implementing a medium-sized application using Recoil, I encountered an issue where I could not get the value of atom from certain child component. Of course, I called <RecoilRoot> close to the top level components of the