DEV Community

Discussion on: 5 Best practices for a React Project.

Collapse
 
brense profile image
Rense Bakker

Folder structures are great, but the most important thing is to keep related things together. If you write a test, it should be in the same folder as the component the test is for, same with styles for that component... Keep everything related to that component in the same place so it is easy to find.

Collapse
 
easyvipin profile image
Vipin Chandra

Totally Agree with you Rense , test should be within the components. 🙌.
Thank you 🌻