How to set up the directory structure of react project components?

question:
react everything is a component, the directory is difficult to plan, sometimes it is very messy, various components, display, container high-level components, routing, etc.,
headache
too much to find where to put
common components together, sometimes extracted only once, do not know how to put

Aug.27,2021

|--viewspages// 
  |--1
|--components // 
  |--cores // 
    |--1
  |--container // 
    |--1
  |--1 // 
  |--2
|--router // 
|--utils //
|--assets // 
|--common // 
//
|--store // redux
|--actions
|--reducer

in fact, the project does not have a written structure, the structure is refined according to the specific project, you should not be bound by the rules, the general structure is right, how do you want to write the detailed structure, and the rules are stipulated in advance. It won't be messed up

Menu