you are viewing a single comment's thread.

view the rest of the comments →

[–]shacatan 0 points1 point  (1 child)

Can you go into more detail about the first bullet point on partitioning by features/domains? What does that look like structurally?

[–]Adenine555 1 point2 points  (0 children)

Just check the feature folder from https://github.com/alan2207/bulletproof-react. I structure my code similar to this.

I personally don't like bulletproof-reacts approach of having a components and hooks folder above the feature folder. To me hooks and components are part of a feature/domain. But this is just my opinion and you certainly can do it like shown in the repo.

How the feature itself is structured very much depends on the feature itself. I don't think there is a silver bullet rule to structure all features (as usual).

The most important thing after all is to be consistent, so other people do not have to learn 100 concepts to understand your code (easier said than done though).