Last active
July 17, 2020 18:48
-
-
Save apackin/413f895a90eec4a9841cadac5833bca4 to your computer and use it in GitHub Desktop.
FancyTextSubmit with forwardRef
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
const FancyTextSubmit = forwardRef(({ onClick }, ref) => ( | |
<div> | |
<input ref={ref} type="text" /> | |
<button onClick={onClick}>Submit</button> | |
</div> | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment