Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up'xx' is not defined for arrow functions in react #1097
Comments
This comment has been minimized.
This comment has been minimized.
|
Are you intentionally trying to set a global variable? In that case, you can add const submit = () => {} |
This comment has been minimized.
This comment has been minimized.
|
That was a method of a class, this is in a react component, such as:
|
This comment has been minimized.
This comment has been minimized.
|
This issue is fixed by updating to |
feross
closed this
May 16, 2018
feross
added
the
question
label
May 16, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Aug 14, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
btmdave commentedMar 24, 2018
I'm receiving errors that a function is not defined within a react component, on the line of the function, i.e.,
gives me 'submit' is not defined. I know I can
// eslint-disable-linebut is there anyway to have standard recognize this? I'm using with babel-eslint.