It seems a lot of places in the docs say ReactEvent, when they mean to say React.Event,
e.g.:
/* App.re */
/* CORRECT! This code is bug-free. 👍 */
[@react.component]
let make = () => {
let (name, setName) = React.useState(() => "John");
<input
type_="text"
value={name}
onChange={
event => {
let value = ReactEvent.Form.target(event)##value;
setName(_ => value)
}
}
/>;
};