yarn add @gui-framework/core @gui-framework/dom @gui-framework/vite-plugin
import * as Gui from '@gui/core';
import GuiDOM from '@gui/dom';
const HelloWorld: Gui.Component = () => {
const [ counter, setCounter ] = Gui.state<number>(0);
return (
<div>
<h1>Hello, Gui!</h1>
<p>Counter: {counter}</p>
<button onClick={() => setCounter(counter + 1)}>increment</button>
</div>
);
};
GuiDOM.render(
<HelloWorld />,
document.querySelector('#root'),
);
Add to vite.config.ts
import { gui } from '@gui-framework/vite-plugin';
{
// ...
plugins: [gui()]
// ...
}
👤 tori-getz
- Github: @tori-getz
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!