我的github

There is no "global" state with Recoil. You have atoms that live beneath the Recoil component graph. The only thing that ties Recoil to React is the RecoilRoot component. But maybe you can give some pseudo code of what you want to achieve so I can better understand the issue and what you want to do. – Johannes Klauß

https://stackoverflow.com/questions/66107118/how-to-manipulate-a-global-state-outside-of-a-react-component-using-recoil/66175616#66175616

Error: This component must be used inside a <RecoilRoot> component.
posted on 2021-07-15 11:56  XiaoNiuFeiTian  阅读(176)  评论(0编辑  收藏  举报