Winiex / webpack-react-hmr-demo

Hot module reloading demo for react on webpack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

A simple demo for react HMR on webpack.

Installation

git clone https://github.com/Winiex/webpack-react-hmr-demo.git
cd webpack-react-hmr-demo
npm install

Run

npm start

Then you can visit the demo in http://localhost:8080/.

Test HMR functionality

  1. Open app/components/Counter.js
  2. Change the counter increment in line 20
  3. Watch the result in browser

Credits

Thanks to Using Webpack's Hot Module Replacement with React.

About

Hot module reloading demo for react on webpack.


Languages

Language:JavaScript 90.8%Language:HTML 9.2%