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

Simplify code example in ToggleControl component readme #56389

Merged
merged 2 commits into from Nov 22, 2023

Conversation

fabiankaegy
Copy link
Member

What?

Simplify the example code of the ToggleControl component readme

Why?

The solution for updating state in the example is overly complex and doesn't showcase that the onChange handler actually gets the new value passed in as a property

How?

Updated the code example

@fabiankaegy fabiankaegy enabled auto-merge (squash) November 22, 2023 07:54
@fabiankaegy fabiankaegy merged commit d7d680e into trunk Nov 22, 2023
49 of 50 checks passed
@fabiankaegy fabiankaegy deleted the docs/simplify-code-example-toggle-control branch November 22, 2023 08:07
@github-actions github-actions bot added this to the Gutenberg 17.2 milestone Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants