This repository was archived by the owner on May 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +29
-18
lines changed
Expand file tree Collapse file tree 1 file changed +29
-18
lines changed Original file line number Diff line number Diff line change @@ -67,27 +67,38 @@ react-transition-group目前有V1和V2,本项目使用的是V1,如果没有
6767#### 项目结构
6868
6969``` text
70- ├── doc 相关的教程文档
71- ├── public readMe的一些图片资源,可以删掉该文件夹
72- ├── src 项目的主目录
73- │ ├── actions 管理你的action文件
74- │ ├── components 管理二级以及更低级别的组件、包括公共组件
75- │ │ ├── Commons
76- │ │ ├── Home Home页面对应的子组件
77- │ │ │ └── files
78- │ │ └── Search Search页面对应的子组件
79- │ │ └── files
80- │ ├── containers 管理顶级组件,通常是页面
70+ ├── doc //各种与该项目或者react有关的开发文档供你参考
71+ ├── index.html //单页应用的html
72+ ├── package.json //node相关环境的配置文件
73+ ├── server.js //前端服务器
74+ ├── src //项目的主要目录
75+ │ ├── App.js //根react组件
76+ │ ├── AsyncComponent.js //异步react组件HOC
77+ │ ├── actions //action控制中心
78+ │ ├── app.less //公共样式
79+ │ ├── containers //按页面划分组件,每个页面内部的组件在该目录下面管理,公共组件提取到Commons
8180│ │ ├── BookList
82- │ │ ├── Home 首页
81+ │ │ │ └── BookList.js
82+ │ │ ├── Commons
83+ │ │ │ ├── MyScroll.js
84+ │ │ │ ├── ReactChildrenMap.js
85+ │ │ │ └── SetDocumentTitle.js
86+ │ │ ├── Home
87+ │ │ │ ├── Home.js
88+ │ │ │ ├── components
8389│ │ │ ├── files
84- │ │ │ └── styles
85- │ │ └── Search 搜索页
90+ │ │ │ └── styles
91+ │ │ └── Search
92+ │ │ ├── Search.js
93+ │ │ ├── components
8694│ │ └── styles
87- │ ├── reducers 管理store
88- │ └── utils 一些公共的方法和组件可以放这里
89- └── test 测试脚本
90- └── __snapshots__
95+ │ ├── entry.js //webpack打包入口
96+ │ ├── reducers //存放state
97+ │ └── utils //提供一些小工具
98+ ├── test //jest测试集
99+ │ ├── __snapshots__
100+ ├── webpack.config.js //webpack配置文件
101+ └── webpackServerConfig.js //webpack公共对象
91102
92103```
93104
You can’t perform that action at this time.
0 commit comments