Created
May 17, 2020 18:04
-
-
Save jsmanifest/5079ae5e6802bc941d27ae3a6b86701a to your computer and use it in GitHub Desktop.
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
function onChange(e, { ref }) { | |
console.log(`current state value: ${value}`) | |
console.log(`incoming value: ${e.target.value}`) | |
setValue(e.target.value) | |
console.log(`current state value now: ${value}`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment