-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[withStyles] Conditionally forward ref to inner component
React.forwardRef was added in React 16.3, but since this package still supports older versions of React, we conditionally fork the application of the forwarded ref. We will remove the fork in favor of always forwarding the ref in a later breaking change version. context: #240 (comment)
- Loading branch information
Austin Wood
committed
Apr 6, 2021
1 parent
fdff766
commit 220e2f0
Showing
1 changed file
with
20 additions
and
5 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