Last active
July 18, 2022 16:15
-
-
Save Yamo93/94ac81d4c2d24d8d765c03d46f33b39f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Parent () { | |
function save () { | |
// save the value of the child | |
} | |
return ( | |
<> | |
<Child type="checkbox" /> | |
<button onClick={save}>Save</button> | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment