/react-starter

A basic starting point for react applications.

Primary LanguageJavaScript

React Starter

A basic react starter kit

What's in it?

  • Simple src/index.jsx and src/index.css (local module css).
  • Webpack configuration for development (with hot reloading) and production (with minification).
  • CSS module loading, so you can include your css by import styles from './path/to.css';.
  • Both js(x) and css hot loaded during development.
  • Webpack Dashboard Plugin on dev server.

To run

  • Install the dependencies:
npm install
  • Run development server:
npm start
npm run dev

Open the web browser to http://localhost:8888/

To build the production package

npm run build

Eslint

There is a .eslint.yaml config for eslint ready with React plugin. To use it, you need to install additional dependencies though:

npm install --save-dev eslint eslint-plugin-react

To do the actual linting, run:

npm run lint