1. Create the project:
A. Global installation create-react-app:npm Install CREATE-REACT-APP-G
B. Execute Create-react-app my-projectname Create your own project, and NPM run start will launch the project after completion.
2. Introduction of component library, plug-in configuration, etc.:
A. Implementing the NPM Install Antd-mobile--save installation component library
B. Perform npm install Babel-plugin-import--save installation on-demand add-ons
C. Perform npm run eject pop-up personalization, add the on-demand load plug-in configuration in the Babel configuration item in Package.json:
3. Introduction of Redux, React-redux
A. Perform NPM install Redux--save installation redux
B. Perform npm install Redux-thunk installation thunk plug-in to enable Redux to handle asynchronous operations
C. Perform NPM install React-redux--save installation React-redux simplify parameter delivery
D. Performing NPM install babel-plugin-transform-decorators-legacy--save-dev Installing this plugin supports the adorner notation of Connect
4. Introduction of React-router4
A. Implementing NPM install React-router-dom--save
Build single-page applications with Create-react-app combined with React-redux and react-router4