-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnote.txt
72 lines (51 loc) · 1.61 KB
/
note.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
http://www.gistia.com/beginners-guide-redux/
https://redux.js.org/basics/usage-with-react
---
title: "Organize Folder Structure"
permalink: /organize-folder-structure
excerpt: ""
last_modified_at: 2018-05-16T15:58:49-04:00
---
There are numerous ways to organize a react app using redux and you can spend a lot of time reading about them. We want to introduce you to one, the one we use. It's only one way and we've found it to work over time and stay simple to understand and scalable.
```
create-react-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│ └── favicon.ico
│ └── index.html
│ └── manifest.json
└── src
└── assets
└── config
└── constants
└── containers
└── components
└── actions
└── reducers
└── routers
├── views
│ └── layouts
└── utils
└── index.js
└── registerServiceWorker.js
```
Inside of the `src` folder is where all of our app logic will be going. Let’s cover each one.
## assets
CSS, JavaScript, images, fonts, and so on – are all in `assets`.
## config
configureStore.js, configureTheme, and so on – all configure files are in `config`.
## constants
All constants files and variables are in 'constants'.
## containers
All container components (or known as stateful component) are in 'containers'.
## components
All presentational component (or known as functional stateless component) are in 'components'.
## actions
## reducers
## routers:
## views
## utils
## index.js