Details
Details
Flow
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
This doesn't feel right. React.Ref and React.ElementRef are different. Why are we replacing them?
Comment Actions
The docs are outdated flow try.
But React.ElementRef is indeed invalid type for this and I've changed it to RefSetter/RefObject as described in the changelog:
React.Ref is marked as deprecated. Use React.RefSetter instead for ref props, and React.RefObject for returns of useRef