I\'m making an app on react-redux. I\'m using webpack for bundling and babel for transpiling. When I am try to use arrow function in my code. It gives me error as :
First you needed to edit the .babelrc file to
{ "presets": ["react", ["es2016"]], "plugins": [ "babel-plugin-transform-class-properties" ] }
Second npm install babel-plugin-transform-class-properties and babel-preset-es2016
npm install babel-plugin-transform-class-properties