Yeah we are on JSX 3 and we’re on an older version of react which requires forwardRef
(as far as I know). But it’s interesting that it’s discouraged (maybe it should be marked as deprecated and given a compiler warning?) and that it’s not necessary. Unfortunately the docs don’t suggest what to do instead. Is the correct way to just add a ~ref
prop on the outer component and pass it to the inner component?
↧
Correct way to use `React.forwardRef` with uncurried ReScript + ReScriptReact 0.12?
↧