In my reactjs component I have this code:
increment = () => {
store.dispatch({type: 'INC'});
}
When I run npm start in the console I get:
Module build failed: SyntaxError: Missing class properties transform.
I installed :
npm install --save-dev babel-plugin-transform-class-properties
And also added this to my .babelrc :
"plugins": [
"transform-class-properties"
],
"presets": [
"es2015",
"react",
"stage-0"
],
How can I resolve this?