mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fc46af013a70f04bdbed9215f013cdd23d3ca6bc
The runtime contains a type check to determine if a user-provided ref is a valid type — a function or object (or a string, when `disableStringRefs` is off). This currently happens during child reconciliation. This changes it to happen only when the ref is passed to the component that the ref is being attached to. This is a continuation of the "ref as prop" change — until you actually pass a ref to a HostComponent, class, etc, ref is a normal prop that has no special behavior. DiffTrain build for commit https://github.com/facebook/react/commit/2f8f7760223241665f472a2a9be16650473bce39.
react-fbsource-import
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%