GTKX: React Bindings for GTK4 via Rust FFI โ€“ No Electron
eugeniodepalo.github.ioยท1dยท
Discuss: Hacker News
๐Ÿฆ‹Tauri
Preview
Report Post

โš›๏ธ

React

Hooks, state, props, and components you already know. Write JSX that renders as native GTK4 widgets.

๐Ÿ”ฅ

Hot Reload

Edit code and see changes instantly. Vite-powered HMR with no app restart needed.

๐Ÿš€

Native

Direct FFI bindings to GTK4 via Rust and libffi. No Electron, no web views.

โšก

CLI

npx @gtkx/cli@latest create scaffolds a project with TypeScript, testing, and HMR ready to go.

๐ŸŽจ

CSS-in-JS

Emotion-style css template literals for GTK widgets. Compose and reuse styles easily.

๐Ÿงช

Testing

Testing Library-style API with screen, userEvent, and queries for GTK widgets.

Simple and Familiar

Write React components that render as native GTK4 widgets

import { render, ApplicationWindow, Box, Button, Label, quit } from "@gtkx/react";i...

Similar Posts

Loading similar posts...