React renderer for GPUI (Zed's GPU-accelerated UI) using Bun native FFI.
# not yet
bun add gpui-react reactthe code:
import { createRoot } from "gpui-react";
createRoot({ width: 800, height: 600 }).render(
<div style={{ backgroundColor: "#1e1e1e", padding: 40 }}>
<div style={{ color: "#ffffff", fontSize: 24 }}>Hello World</div>
</div>
);20260110-201047.mp4
See demo/ for complete examples.
bun run build:rust && bun run copy:native # compile native lib
bun run event-demo # Event handling
bun run drawing-demo # Drawing board
bun run canvas-demo # Canvas drawing