Skip to content
New issue

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

fix: mistake in allowArrowFunction #3054

Closed

Conversation

Hamza-jamshaid
Copy link

What does this PR do?

This PR fixes the incorrection in allowArrowFuntion "true" to "false" in react.js.

Fixes #2255

image

##Type of change
Bug fix (non-breaking change which fixes an issues).

##How should this be tested?
-[]Go to react.js file
-[]Check the line no 112 that bug in allowArrowFunction "false"

##Mandatory Tasks

-[X] Make sure you have self-reviewed the code.A decent size PR without self-review might be rejected.

@ljharb
Copy link
Collaborator

ljharb commented Oct 14, 2024

See my comment here: #2255 (comment)

In other words, arrow functions are fine in an HTML element, and in a custom component, are only a problem if the custom component isn't just stamping them onto an HTML element.

@Hamza-jamshaid Hamza-jamshaid closed this by deleting the head repository Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration of react/jsx-no-bind allows to use arrow functions, while the style guide prohibits it
2 participants