initial-react-app (点我查看中文文档)
For the sake of simplicity, we will automatically initialize a react project that uses antd.
Just download the initial-react-app.sh script from this project and save it to the directory where you need to create a new project. , the command runs the script and waits for the project to be initialized to run the project.
Pay attention before use:
- Please make sure there is a
nodeenvironment on your computer. - Please ensure global
npmwrite permission, current directory write file permissions - Please ensure that the network is unblocked
- Running in
shellenvironment
Use the command: (remember to enter the project name, here project-name is just an example)
./initial-react-app.sh project-name
After the project is initialized, enter the project directory and run the project directly:
cd ./project-name && yarn start
- use
react-router-dom - use
redux - use
redux-thunkmiddleware - use
antdlibrary,And already configured Load on demand and Custom theme - use
eslintstandardLibrary specification code - use
lessPrecompiled language