Skip to content

Instantly share code, notes, and snippets.

@DJanoskova
Created March 22, 2020 18:12
Show Gist options
  • Select an option

  • Save DJanoskova/31ffe3507bbcaf112a61956353ecc0cd to your computer and use it in GitHub Desktop.

Select an option

Save DJanoskova/31ffe3507bbcaf112a61956353ecc0cd to your computer and use it in GitHub Desktop.
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