I didn’t found how to declare a .rei file when a React component use forwardRef. (note: I still use Reason syntax)
[@react.component]
let make = React.forwardRef((~id: string), ref_) => ...)
I tried something like this but no clue
[@react.component]
let make: (~id: string, ~ref_: 'ref) => React.element;
I think it’s the ppx react.component fault because of the magic with makeProps ?
ATM it will take me some times to replace this feature by a simple prop so if you have some ideas I’ll take it
You can always drop out of the ppx and write makeProps by hand. Take a look at this example. It’s definitely not pretty because React refs disappear from the actual props object on the inside.