loading...

re: An Opinionated Guide to React: Folder Structure & File Naming VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Interesting... I have a similar approach. Would be very interesting to see the structure inside of /components. Is there any nesting? A folder for ...
 

I don't use any nesting in any of the folders. The shape of of my components folder is like so:

/components
  /__tests__
    Button.test.tsx
Button.tsx

I usually don’t have styles files in my apps. I use plain css frameworks like tailwind or bootstrap so there is not a separate styles file.

Code of Conduct Report abuse