I’m trying to write a React component in Reason and wrap it for JS. Here’s my code:
open ReasonReact;
let component = statelessComponent("Topbar");
let make = _children => {
...component,
render: _self => <div> (stringToElement("hello")) </div>
};
let default = wrapReasonForJs(~component, _jsProps => make([||]));
But when importing this module from JS, I get the following compilation error:
./src/components/topbar/index.bs.js
Module build failed: TypeError: Cannot read property 'node' of undefined
What did I miss?