praveenscience / easya-website

This is the source code for EasyA Website built for Enterprise entirely using React JS.
https://easya.jigg.win/
GNU General Public License v3.0
23 stars 33 forks source link

[Question]: Reason for having a unique folder structure than conventional apps #46

Open sohamsshah opened 3 years ago

sohamsshah commented 3 years ago

I observed that this repository separates the Components from the styles and keeps them different in the codebase.

Also, I saw that the naming of many starts with underscore. Might have missed other stuff as well.

Can you help me understand why this structure, how it helps to code and maintain better and also what practices this repo follows for code structure, any specific principle or inspiration from some project?

Would love to know this and excited to contribute as well if I find some good issues to fix and help the project ;)

Thanks.

praveenscience commented 3 years ago

Sure, generally I don't prefer the styles getting mixed with HTMLs... So I kept the same directory structure under components. You can use breadth first approach or depth first approach. I used the breadth first... 😊 Just a different perspective.