Skip to content

Commit

Permalink
fix: reactRender is not a function in React 19 (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Dec 24, 2024
1 parent ea33203 commit 5a67350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/React/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function modernRender(node: React.ReactElement, container: ContainerType) {
}

function legacyRender(node: React.ReactElement, container: ContainerType) {
reactRender(node, container);
reactRender?.(node, container);
}

/** @private Test usage. Not work in prod */
Expand Down

0 comments on commit 5a67350

Please sign in to comment.