DEV Community

Discussion on: Why I stopped using Redux and Used Recoil Instead

milindsoorya profile image

I am trying to implement recoil but is stuck on how to properly structure it. Are there any production-ready, battle-tested approaches that you know of?

blowfish profile image
Blow Fish

What I like to do is create a folder in root called "states" and atoms and selectors of each logic goes in one file. Like user atoms and selectors goes in states/user.js. Absolute imports will make your code more readable and easy to work with