This is a starter setup for a React project running with Webpack and Babel.
- React 16
- Webpack 4
- Babel 7
- Hot Module Replacement
- Development and production builds
- Common and environment specific Webpack configuration
- Environment variables
- Source maps
- Polyfills for browser support (promises and symbols)
- ESLint (airbnb with hooks support)
- Prettier
-
Download the project and cd into it:
git clone git@github.com:junagao/react-starter.git cd react-starter
-
Setup environment variables:
touch .env.development && touch .env.production
.env.development:
NODE_ENV=development
.env.production:
NODE_ENV=production
-
Install dependencies and run the application:
yarn yarn dev
-
Open your browser and navigate to: