react useState hook won't update on input onChange event using react functional component
const [email, setEmail] = useState("");
// i'm not able to set input value in useeffect using this code
<GridItem xs={12} sm={12} md={4}>
<CustomInput
labelText="Email address"
id="email-address"
formControlProps={{
fullWidth: true
}}
value={email}
onChange={evt => setEmail(evt.target.value)}
/>
</GridItem>