Files
react/compiler/packages/babel-plugin-react-compiler/src
Joe Savona c50d593e63 [compiler] Type ref prop as a ref
Adds a shape type for component props, which has one defined property: "ref". This means that if the ref property exists, we can type usage of `props.ref` (or via destructuring) the same as the result of `useRef()` and infer downstream usage similarly.

ghstack-source-id: 76cd07c5df
Pull Request resolved: https://github.com/facebook/react/pull/29834
2024-06-10 11:29:55 -07:00
..
2024-06-10 11:29:55 -07:00
2024-05-02 17:14:26 -07:00
2024-05-02 14:12:33 -07:00
2024-05-02 17:14:25 -07:00