DEV Community

Discussion on: A Better Way to Structure React Projects

Collapse
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

We usually make something like that:

having some styling globals 'variables.scss, common.scss, modals.scss, fonts.scss, colors.scss, accordion.scss and so' organised on semantically understandable directory tree.

Then each component has it's own scss where you import (@use) the necessary globals.

We find this was as more suitable for big projects but i'm not sure if it's the best way yet, how do you manage it?