DEV Community

Discussion on: 5 Best practices for ReactJs

Collapse
detzam profile image
webstuff

Break Large components into small components or Reusable components
Do you do that in different files? or you can export differnet components from a single file?

Collapse
sachinchaurasiya profile image
Sachin Chaurasiya Author

We can do it either way, but for unit test perspective we should keep components in different files.