Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created May 17, 2020 18:04
Show Gist options
  • Save jsmanifest/5079ae5e6802bc941d27ae3a6b86701a to your computer and use it in GitHub Desktop.
Save jsmanifest/5079ae5e6802bc941d27ae3a6b86701a to your computer and use it in GitHub Desktop.
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