-
Notifications
You must be signed in to change notification settings - Fork 1
Folder Architecture
Dương Tiến Vinh edited this page Sep 15, 2022
·
2 revisions
.
├── components
│ ├── elements
│ ├── layouts
│ └── modules
├── constants
├── context
├── hooks
├── pages
│ └── api
├── routes
├── store
│ └── slice
└── main.jsx
-
elements
: Basic building blocks. -
layouts
: Wrap your pages with the default layout. -
modules
: Modules are built from multipleelements
. -
constants
: Global constants. -
context
: React Context providers. -
hooks
: Custom hooks. -
pages
: Your page routes (adopt from NextJS folder architecture). -
pages/api
: Your APIs (adopt from NextJS folder architecture). -
routes
: Global route for react-router. -
store
: Store your Redux store. -
store/slice
: Store your Redux slices.