Took me a minute to find how to type a ref prop when removing forwardRef. First I tried RefObject<> but it didn't work with a callback, then I found the Ref<> type. Maybe worth adding to the guide?
Took me a minute to find how to type a ref prop when removing forwardRef. First I tried RefObject<> but it didn't work with a callback, then I found the Ref<> type. Maybe worth adding to the guide?