I have the following code:
let make = (_children) => {
...component,
initialState: () => {empty: ""},
reducer: (_action: action, _state: state) => ReasonReact.NoUpdate,
render: _self => {
<div className="field">
<input className="is-checkradio" id="exampleCheckbox" _type="checkbox" name="exampleCheckbox" />
<label for_="exampleCheckbox">{ReasonReact.stringToElement("Hello!")}</label>
</div>
},
};
The compiler complains:
The function applied to this argument has type
(~key: string=?, ~ref: Js.nullable(Dom.element) => unit=?,
~defaultChecked: Js.boolean=?, ~defaultValue: string=?,
It complains about for_="exampleCheckbox"
.
What am I doing wrong?
Thanks