https://github.com/allient/create-react-app-template
https://github.com/allient/create-react-app-template
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/allient/create-react-app-template
- Owner: allient
- License: apache-2.0
- Created: 2020-11-07T14:10:03.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-24T01:04:46.000Z (over 5 years ago)
- Last Synced: 2024-12-30T08:13:50.315Z (over 1 year ago)
- Language: JavaScript
- Size: 522 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Create a project in react
Use the next command:
#### `npx create-react-app name`
Move all the files and folders to the repository
#### `Move the archives to the repository`
Then you can erase the folder that is empty.
In the next steps you need to create folders for all the project:
## Folders
* assets
* components
* constants
* hooks
* layouts
In the folder of redux:
* redux
Redux allow to modifying a state from anywhere in the code when is correctly configured.
- You need to create another folders in the folder of redux:
* slices
In this folder we save all the states
* store
In another hand this folder is connected to the global states
Then we can doing the creation of another folders:
* services
This folders is used to storage the services that we can consume of a third parts or entities
* theme
This folder is destined to storage the framework to use in the views or the Interface
* utils
This folder contains functions that I created and I will reused
* views
Finally in this folder I can find the views of the project, the structure.
So after that we do all this steps, we can go to the rest of files of src and we need just the files:
#### `App.js`
#### `index.js`
All the rest of files we can erase.