1. Use react-awesome-cli
npm i react-awesome-cli -g
rac
# or
react-awesome-cli
git clone https://github.com/wyx2333333/react-awesome-template.git
cd react-awesome-template
npm i
# or
yarn
# or
pnpm i
npm dev/prod
# or
yarn dev/prod
# or
pnpm dev/prod
And then open http://localhost:3000 to view it in the browser.
Script | Description |
---|---|
npm run dev | Runs the app in the development mode. ( use .env.development ) |
npm run prod | Runs the app in the production mode. ( use .env.production ) |
npm run build:dev | Builds the app for development to the dist folder. |
npm run build:prod | Builds the app for production to the dist folder. |
npm run format | Prettier format. |
This project is licensed under the terms of the MIT license.