May depend on your bindings but I do have an example at color-scheme-tool/src/App.res at 08c39c18aae4616e411a58375054ca05b4e714d5 · jaidetree/color-scheme-tool · GitHub
The key is:
onInput={e => {
e
->JsxEvent.Form.currentTarget
->DomUtils.Event.getValue
->Option.getOr("0e0e0e")
->Hex
->setSelectedColor
}}
JsxEvent.Form.currentTarget is built into the JSX module. DomUtils.Event.getValue is a custom binding for reading the .value
from an element (though could be better named).