Hi,
im trying to convert an existing react app to reasonml and react-reason. Here i have some problems with the types of arrays and object which come directly from the DOM files input via ReactDOMRe.domElementToObj(ReactEventRe.Form.target(_event))##files
.
It works, but the Object created with “fileToJs” is just an Object with all values undefined. Js logging Belt.Array.getExn(_state.files, 0)
gives me the correct to object with all key values pairs filled correctly.
Here is a Gist of my current code: react-reason example
Maybe someone could explain how to correctly type the result from DOM API, so it can be used in the bs-axios request?