From a97afa5dd9168c759ecc04ffb39d47523220e691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Fri, 2 Jan 2026 12:40:15 +0100 Subject: [PATCH] Fix --- packages/example/src/TestUi1Component.tsx | 13 ++++--------- packages/example/src/TestUi2Component.tsx | 8 ++++---- packages/react-godot-renderer/src/Component.ts | 2 +- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/packages/example/src/TestUi1Component.tsx b/packages/example/src/TestUi1Component.tsx index 529d41a..9862622 100644 --- a/packages/example/src/TestUi1Component.tsx +++ b/packages/example/src/TestUi1Component.tsx @@ -3,11 +3,10 @@ import { useState } from "react" import { Component } from "react-godot-renderer" -const VFlowContainer = Component.make(Godot.VFlowContainer) -const Label = Component.make(Godot.Label) -const TextEdit = Component.make(Godot.TextEdit) -const Button = Component.make(Godot.Button) -const TestUi1Scene = Component.fromScene("res://src/TestUi1.tscn") +const VFlowContainer = Component.fromClass(Godot.VFlowContainer) +const Label = Component.fromClass(Godot.Label) +const TextEdit = Component.fromClass(Godot.TextEdit) +const Button = Component.fromClass(Godot.Button) export function TestUi1Component() { const [text, setText] = useState("Default text") @@ -26,10 +25,6 @@ export function TestUi1Component() { return (