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: dangerous docs recommendation #837

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nandorojo
Copy link

@nandorojo nandorojo commented May 5, 2023

The current docs recommend using a hook in a callback function, which breaks the rules of React.

Description

Fixes (issue #)

Reviewers’ hat-rack 🎩

  • [ ]

Screenshots or videos (if needed)

Checklist

The current docs recommend creating components in other components. This is a very dangerous approach, as it creates a brand new instance on every render.
@naqvitalha
Copy link
Collaborator

@nandorojo Can you sign the CLA please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants