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

[Docs] updates jsx-no-bind discussion of refs #2998

Merged
merged 1 commit into from Jun 2, 2021

Conversation

dimitropoulos
Copy link
Contributor

this is a follow-up from the discussion in #2991 to update documentation to make it clear why sending new functions to refs does not cause re-renders.

It felt a little too self-serving to add the demo I made for this https://codesandbox.io/s/inline-arrow-refs-do-not-cause-rerenders-4cdmf?file=/src/App.js but if it's deemed helpful, I'd be happy to add it.

docs/rules/jsx-no-bind.md Outdated Show resolved Hide resolved
@ljharb ljharb merged commit faadccb into jsx-eslint:master Jun 2, 2021
@dimitropoulos dimitropoulos deleted the patch-1 branch June 2, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants