I am trying to get started building a site in ReactJS. However, when I tried to put my JS in a separate file, I started getting this error: \"Uncaught SyntaxError: Unexpecte
Try adding in webpack, it solved the similar issue in my project. Specially the "presets" part.
module: { loaders: [ { test: /\.jsx?/, include: APP_DIR, loader: 'babel', query :{ presets:['react','es2015'] } },