GTKX: React Bindings for GTK4 via Rust FFI โ€“ No Electron
eugeniodepalo.github.ioยท4wยท
Discuss: Hacker News
๐ŸŒWeb Development
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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help