import Godot, { Vector2 } from "godot" 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 Test = Component. export function TestUi1Component() { const [text, setText] = useState("Default text") const textEditRef = TextEdit.useRef() Component.useSignal(textEditRef, "text_changed", function(this) { setText(this.text) }) const buttonRef = Button.useRef() Component.useSignal(buttonRef, "pressed", () => { console.log("Pressed!") }) return (