Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To install React DOM and build your bundle with webpack:
- $ npm install --save react react-dom babel-preset-react
- $ webpack
- webpack <entry> <output>
- module.exports = {
- context: __dirname + "/app",
- entry: {
- jsx: './main.js',
- html: './index.html'
- },
- output: {
- path: __dirname + '/dist',
- filename: 'bundle.js'
- }
- }
Add Comment
Please, Sign In to add comment