Hello,
Trying to get this component to work
[@react.component]
let make = () => {
let (value, setValue) = React.useState(() => “”);
<input value onChange={event => setValue(_ => ReactEvent.Form.target(event)##value)} />;
};
Seems like a rather simple component and as far as I can see this should work. When I type one character in the input box it seems to be all fine, however when I typed the second one I seem to get a null pointer issue. How should this normally be handled, seems a rather basic thing so I suppose I am doing something wrong?