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?
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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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?
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