Created
March 22, 2020 18:12
-
-
Save DJanoskova/31ffe3507bbcaf112a61956353ecc0cd 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
| const CustomInput2 = ({ onChange }) => { | |
| const handleChange = (e) => { | |
| const newValue = getParsedValue(e.target.value); | |
| onChange(newValue); | |
| }; | |
| return ( | |
| <Input onChange={handleChange} /> | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment