From 32720c8ecbe1b92eb6c7a589d13ebd98d55a1445 Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Tue, 23 Jul 2024 11:18:21 +0200 Subject: [PATCH] chore: use react api --- packages/react/src/ReactRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/ReactRenderer.tsx b/packages/react/src/ReactRenderer.tsx index fc114286bad..9d39c69f0d0 100644 --- a/packages/react/src/ReactRenderer.tsx +++ b/packages/react/src/ReactRenderer.tsx @@ -143,7 +143,7 @@ export class ReactRenderer { } } - this.reactElement = + this.reactElement = React.createElement(Component, props) this.editor?.contentComponent?.setRenderer(this.id, this) }