Minimal starter with hot module replacement (HMR) for rapid development.
- React (16.x)
- Webpack (4.x)
- Typescript (3.x)
- Hot Module Replacement (HMR) (React Hot Loader)
- Code linting (ESLint) and formatting (Prettier)
- Clone/download repo
yarn install
(ornpm install
for npm)
Development
yarn run start
- Build app continuously (HMR enabled)
- App served @
http://localhost:8080
All commands
Command | Description |
---|---|
yarn run start |
Build app continuously (HMR enabled) and serve @ http://localhost:8080 |
yarn run build |
Build app to /dist/ |
yarn run lint |
Run linter |
yarn run lint --fix |
Run linter and fix issues |
Note: replace yarn
with npm
in package.json
if you use npm.