The documentation is published at Github Pages
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
$ yarn create react-app reactant-template --typescript
$ yarn add antd
$ yarn add react-app-rewired customize-cra
$ yarn add babel-plugin-import
$ yarn add less less-loader
Edit package.json
"scripts": {
- "start": "react-scripts start",
+ "start": "react-app-rewired start",
- "build": "react-scripts build",
+ "build": "react-app-rewired build",
- "test": "react-scripts test",
+ "test": "react-app-rewired test"
- "eject": "react-scripts eject"
}
Add react-router-dom
$ yarn add react-router-dom @types/react-router-dom
Edit package.json
+ "homepage": "https://pro.ngolin.com/",
Ubuntu System limit for number of file watchers reached
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
git default editor
$ export EDITOR=vim