Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate withRef in favor of forwardRef and React.forwardRef
Deprecate withRef and use forwardRef prop instead. When forwardRef is true, the ref passed to the injected component will be passed down to the wrapped component. Display a invariant message when withRef is used. Closes #1211.
- Loading branch information
Showing
2 changed files
with
146 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters