Skip to content

Conversation

gaearon
Copy link

@gaearon gaearon commented Jun 16, 2021

This is unrelated to React 18. It's just fixing the checkbox logic. A checkbox doesn't have a selected prop. This worked because you're always toggling it in onChange, but to make this a proper controlled component, we need to fix the prop name.

@vercel
Copy link

vercel bot commented Jun 16, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/swizec/react-fractals/4kUPgCRcevuS4MfzhRmwXuF3Ysn3
✅ Preview: https://react-fractals-git-fork-gaearon-fix-inputs-swizec.vercel.app

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.

2 participants