Unable to use Arrow functions inside react component class [duplicate]
问题 This question already has an answer here: How to use arrow functions (public class fields) as class methods? 4 answers I\'ve started a project where i use React JS for the front end an node js in backend. I used webpack for bundling up JS files. i used babel along with other necessary stuff. When ever i use arrow functions inside a react class it gives a syntax error. like Module build failed: SyntaxError: Unexpected token . But i can use Arrow function in node without any issue. this is my