This project is an "eject" version of create-react-app,but added with more features/changes below:
- Yarn package management
- Webpack upgraded to version 2
- move babel config from package.json to .bablesc
- multi-entries, code splitting, tree shaking on production
- add service-worker for production (Progressive Web Apps)
The widget reads a list of data (5000 items) from remote endpoint, renders with pagination in a table. the link of demo is https://ns-gjigbhyuxp.now.sh
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.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
After builds, You may also serve it locally with a static server:
npm install -g pushstate-server
pushstate-server build
open http://localhost:9000
npm run deploy-now
For more infor on how to deploy app to Now server, please refer to this post: Zero Configuration Deployment for React app with Zeit Now
npm run deploy-gh
Please configure the 'homepage' in package.json before deploying.