-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chandra
committed
Jul 19, 2021
1 parent
9f8da08
commit d91bdc5
Showing
4 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
readme.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
#### Folder structure | ||
|
||
/src | ||
index.tsx: Entry point file that renders the React component tree | ||
|
||
- index.tsx: Entry point file that renders the React component tree | ||
|
||
/app | ||
store.ts: store setup | ||
rootReducer.ts: root reducer (optional) | ||
App.tsx: root React component | ||
/common: hooks, generic components, utils, etc | ||
/features: contains all "feature folders" | ||
/todos: a single feature folder | ||
todosSlice.ts: Redux reducer logic and associated actions | ||
Todos.tsx: a React component | ||
/app contains app-wide setup and layout that depends on all the other folders. | ||
|
||
/common | ||
contains truly generic and reusable utilities and components. | ||
|
||
/features | ||
has folders that contain all functionality related to a specific feature. In this example, todosSlice.ts is a "duck"-style file that contains a call to RTK's createSlice() function, and exports the slice reducer and action creators. | ||
|
||
- store.ts: store setup | ||
- rootReducer.ts: root reducer (optional) | ||
- App.tsx: root React component | ||
|
||
/common: hooks, generic components, utils, etc | ||
|
||
/features: contains all "feature folders" | ||
|
||
- /todos: | ||
- a single feature folder todosSlice.ts: Redux reducer logic and associated actions | ||
- Todos.tsx: a React component | ||
|
||
/app | ||
|
||
- contains app-wide setup and layout that depends on all the other folders. | ||
|
||
/common | ||
|
||
- contains truly generic and reusable utilities and components. | ||
|
||
/features | ||
|
||
- has folders that contain all functionality related to a specific feature. In this example, todosSlice.ts is a "duck"-style file that contains a call to RTK's createSlice() function, and exports the slice reducer and action creators. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d91bdc5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: