DEV Community

Discussion on: Advanced Usage of Styled Components for your React App - Part 1

Collapse
 
olenadrugalya profile image
Olena Drugalya

Yes, you can surely do that. But it’s always good to devide logic from styling in my opinion. And sometimes a component can have only styles (like a wrapper), so it is not necessary to create separate file for that. Like you can have Menu.js and Menu.styles.js which include MenuWrapper and MenuContainer