Skip to content

Commit

Permalink
Update docs/src/pages/guides/migration-v4/migration-v4.md
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
  • Loading branch information
m4theushw and oliviertassinari authored Apr 21, 2021
1 parent 1443f06 commit ea3e135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,8 @@ As the core components use emotion as a styled engine, the props used by emotion

```diff
function MySwitch() {
- const handleChange = (event: any, checked: boolean) => {
+ const handleChange = (event: any) => {
- const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
+ const checked = event.target.checked;
};

Expand Down

0 comments on commit ea3e135

Please sign in to comment.