Skip to content

JFusco/react-router-code-chunking-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-router-code-chunking-example

npm Dependency Status devDependency Status

React + react-router code-chunking example

This repository was created to demonstrate a dead simple application that lazy loads views/scripts using the latest React and React-Router. Bundling and chunking gets handled with Webpack and is written using ES6 modules.

Requirements

The following tools are required to get this running.

Dev tools

  • Node ~6.2.2 ~NPM will install automatically
  • NPM ~3.9.5
  • Webpack ~1.13.1

Installation

Install Node

Visit here - download and install the latest, stable version. This will install npm automatically.

Install Webpack globally

sudo npm install -g webpack

Install dependencies

cd into the root of the project and run this command

$ npm install

Run project

$ npm run dev

Open your browser and navigate to localhost:8080