Skip to content

Instantly share code, notes, and snippets.

@tpetrina
Created September 26, 2017 14:56
Show Gist options
  • Save tpetrina/c12fb48ef97335ff9080f9697c470efa to your computer and use it in GitHub Desktop.
Save tpetrina/c12fb48ef97335ff9080f9697c470efa to your computer and use it in GitHub Desktop.
React form complication 7
let registration = {
// ommitted for brevity
setUsername: (r, e) => {
let value = e.target.value
value = value.replace("-", "")
r.username = value
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment