I'm learning react-redux app and now I'm trying to pass to th browser a "Hello World!" but when I start it with npm it appears an error and I don't really know how to fix it. Sorry I'm a bit noob in this coding world. npm
Thanks in advance :)
Edit:
Below is my index.js
code:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render( <App />, document.getElementById('app') );
Below is my app.js
code:
import React from 'react'; export default () => ( <div>Hello world!</div> );
module.export = {
entry: './index.js',
output: {
path: __dirname,
filename:'bungle.js'
},
devtool: 'eval-source-map',
module: {
loaders: [{
test: /.js?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015', 'react'],
plugins: ['transform-object-rest-spread']
}
}]
}
};