const [value, setValue] = React.useState(prediction); return ( <> e.target.checkValidity() ? setValue(e.target.valueAsNumber) : undefined } />