Open benbellick opened 5 months ago
It seems a lot of places in the docs say ReactEvent, when they mean to say React.Event, e.g.:
ReactEvent
React.Event
/* 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) } } />; };
Happy to fix this one myself, but just wanted to get it down before I forget!
Good catch, I forgot to update the docs references with the last update.
It seems a lot of places in the docs say
ReactEvent
, when they mean to sayReact.Event
, e.g.: