Skip to content

Commit 3704f30

Browse files
committed
Add link to react docs
1 parent 86c81a6 commit 3704f30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/handlers/createHandler.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ export default function createHandler<
303303

304304
const child = React.Children.only(this.props.children);
305305
// @ts-ignore Since React 19 ref is accessible as standard prop
306+
// https://react.dev/blog/2024/04/25/react-19-upgrade-guide#deprecated-element-ref
306307
const ref = (child as ReactElement).props?.ref;
307308
if (ref) {
308309
if (typeof ref === 'function') {

0 commit comments

Comments
 (0)