Open codestitch opened 7 years ago
You can fix this by installing the babel-plugin-transform-class-properties
package and adding it to your conf/webpack/Base.js
Ref: https://stackoverflow.com/questions/42063854/arrow-function-syntax-not-working-with-webpack?answertab=active#tab-top
Hi. I am writing functions inside the component class in my react js project. when I write like this function:
saySomething = (something) => { console.log(something); }
an error occurs.
What should I do?
Thank you.