Beginner’s guide to Webpack
Nader Dabit

This example is broken in React 15.0.0

To fix it, should install npm install react-dom — save. Then in app.js add import ReactDOM from ‘react-dom’; And replace React.render with ReactDOM.render.

React 15 also recommend to render the component in an element instead of document.body

Show your support

Clapping shows how much you appreciated shengt’s story.