xinpuchen / react-template

A simple react application template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-template

A simple React Application template which routes to different pages on user interaction, made from scratch using Babel, Webpack, React Router.

Features

How to use

  1. Clone the template repo.

      git clone https://github.com/xinpuchen/react-template.git
  2. npm i to install npm packages.

  3. Use npm run build:dll to build dlls.

  4. Start dev server using npm run dev.

  5. Build and bundling your resources for production npm run build.

  6. Lint your code using npm run lint.

  7. Use npm run build --report Starts webpack-bundle-analyzer to give you the opportunity to analyze your bundles.

npm scripts

  • npm run dev – starts development server with webpack-dev-server.
  • npm run build – builds project to production.
  • npm run lint – lints both JavaScript (with npm run lint:js) and Sass files (with npm run lint:scss).
  • npm test – runs tests with Jest.

About

A simple react application template

License:MIT License


Languages

Language:JavaScript 92.3%Language:CSS 5.8%Language:HTML 1.9%