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 (