Created
November 14, 2018 15:47
-
-
Save zapkub/afa660c0d420c779515fb3cbe31c162a to your computer and use it in GitHub Desktop.
function component state before hook
This file contains hidden or 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
// THIS COMPONENT CANNOT HAVE STATE | |
const MyInputComponent ({ value, onChange }) => { | |
return ( | |
<input value={value} onChange={onChange} /> | |
) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment