In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
// index.js | |
ReactDOM.render(<App /> , document.getElementById('root')) | |
if (module.hot) { | |
module.hot.accept('./App', () => { | |
ReactDOM.render(<App />, document.getElementById('root')) | |
}) | |
} | |
// store.js |
module.exports = { | |
entry: './src/js/app.js', | |
output: { | |
path: __dirname+'/dist', | |
filename: 'bundle.js' | |
}, | |
module:{ | |
loaders: [ | |
{test: /\.css$/, loader: "style-loader!css-loader"}, | |
{test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/, query:{presets:['es2015']}} |