can't stand typing target.value
; love type ellipses?
const Input = props => {
const onChange = props.onChange && (({target}) => props.onChange(target.value));
return <input {...{...props, ...onChange && {onChange}}} />;
}
:troll_face:
can't stand typing target.value
; love type ellipses?
const Input = props => {
const onChange = props.onChange && (({target}) => props.onChange(target.value));
return <input {...{...props, ...onChange && {onChange}}} />;
}
:troll_face: