L
L
lil_web2019-10-11 22:38:43
BEM
lil_web, 2019-10-11 22:38:43

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-reactseemed complicated, I decided to organize the project structure myself. For example, I have a CSS link ( .Linketc.) that I use on every screen, so I put the link in a file Linkin the folder blocks: it's not a component. But I made the stylized checkbox a separate component Checkboxand 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 question

Ask a Question

731 491 924 answers to any question