We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
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
babel-plugin-transform-class-properties
conf/webpack/Base.js
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: