Skip to content

Commit

Permalink
chore: use react api
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Jul 23, 2024
1 parent 2d34b5e commit 32720c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/ReactRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class ReactRenderer<R = unknown, P = unknown> {
}
}

this.reactElement = <Component {...props } />
this.reactElement = React.createElement(Component, props)

this.editor?.contentComponent?.setRenderer(this.id, this)
}
Expand Down

0 comments on commit 32720c8

Please sign in to comment.