T
TanStack3y ago
manual-pink

Seeking suggestions for React Query folder structure

Hey everyone, I'm currently working on a React project with React Query and I'm looking for some suggestions regarding the folder structure. I want to ensure that my project is well-organized and maintainable in the long run. any suggestions much appreciated - Thanks in advance
No description
2 Replies
manual-pink
manual-pinkOP3y ago
@bostonsheraff
foreign-sapphire
foreign-sapphire3y ago
I think this is a really hot topic, for me it depends you could have the hooks like you have it but based on folders so for example for user create a folder for it and put it there, the other way is you could have it for example you have a homepage module and inside the folder you would have a folder Api and have it there. Really depends

Did you find this page helpful?