Description
react-gtk is a React renderer for GTK 4, so you can build desktop application interfaces as React components. It drives real GTK widgets through node-gtk, which provides GObject Introspection bindings for Node.js. Layout uses flexbox through Yoga, and widgets are styled with CSS-like style props. The widget elements in the core package are generated from your system's Gtk-4.0.gir file by a separate generate package, and you can point the generator at other GIR files with the GIR_DIRECTORIES environment variable. To run apps you need Node.js 20.19 or newer, GTK 4 and GObject Introspection, and the README gives install steps for Ubuntu and macOS. The repository is a pnpm workspace wrapped in make, and its toolchain is pinned in .tool-versions for asdf. The README notes that node-gtk needs its native binding at runtime, and that pnpm skips build scripts by default. The project is under active development and licensed under Apache-2.0. It suits developers who already write React and want to ship GTK desktop programs.…
Highlights
- React renderer for GTK 4 widgets
- Flexbox layout through Yoga
- CSS-like style props for widgets
- Widget elements generated from your GIR files
- Apache-2.0 licensed
Ratings & Reviews
No ratings yet
Be the first to rate React GTK.
People also visit
React GTK FAQ
What is react-gtk?
A React renderer that draws GTK 4 widgets, so you can write desktop app interfaces as React components.
What do I need to run it?
Node.js 20.19 or newer, GTK 4 and GObject Introspection. The README has install steps for Ubuntu and macOS.
How are the widgets created?
The core package generates its widget elements from your system's Gtk-4.0.gir file with the generate package. Set GIR_DIRECTORIES if your gir files are elsewhere.
What license does it use?
Apache-2.0.
Is it still in development?
The README says the project is under active development and asks for bug reports, comments and feedback.
What are the best React GTK alternatives?
Popular alternatives to React GTK include Renderer, Relm4 and Ironbar. See all React GTK alternatives




