Created
September 26, 2017 14:56
-
-
Save tpetrina/c12fb48ef97335ff9080f9697c470efa to your computer and use it in GitHub Desktop.
React form complication 7
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
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