[docs] Incorrect React useState Example on Toggle Button #43986
Labels
component: toggle button
This is the name of the generic UI component, not the React module!
docs
Improvements or additions to the documentation
support: docs-feedback
Feedback from documentation page
Related page
https://mui.com/material-ui/react-toggle-button/
Kind of issue
Other
Issue description
On this example, the method of updating
selected
is incorrect and will cause rendering issues; it should be:As opposed to:
Opening this issue, and then I'll create a PR to fix it.Here's the PR: #43987
Context
No response
Search keywords: toggle button
The text was updated successfully, but these errors were encountered: