Forked from DJanoskova/CleanerComponents-CustomInput2.js
Created
May 11, 2020 00:29
-
-
Save virajkulkarni14/f3b801cf867fbd019ecad6934e8de908 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