Answer the question
In order to leave comments, you need to log in
Do I have a normal project structure in React with BEM?
I like the BEM methodology. I want to use it in a React project.
Packages from @bem-react
seemed complicated, I decided to organize the project structure myself. For example, I have a CSS link ( .Link
etc.) that I use on every screen, so I put the link in a file Link
in the folder blocks
: it's not a component. But I made the stylized checkbox a separate component Checkbox
and placed it in components/shared/
.
Experienced developers, please tell me how you like my project structure and how to improve it.
src/
blocks/
Link/
Link.css
Button/
Button.css
components/
shared/
App/
Header/
Footer/
Checkbox/
Checkbox.css
Checkbox.js
index.js
Map/
MapBox/
MapForm/
Profile/
modules/
Auth/
Map/
Profile/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question