A working starting point
npm install @birchui/react @birchui/ganttShow gantt.jsx
import { createReactComponent } from '@birchui/react';
import { ganttDefinition } from '@birchui/gantt';
const BirchGantt = createReactComponent(ganttDefinition);
const tasks = [
{ id: 'fitout', name: 'Level 4 office fit-out' },
{ id: 'survey', parentId: 'fitout', name: 'Site survey', duration: 2 },
{ id: 'strip', parentId: 'fitout', name: 'Strip out', duration: 3 },
{ id: 'handover', parentId: 'fitout', name: 'Handover', type: 'milestone' },
];
const dependencies = [
{ id: 'd1', from: 'survey', to: 'strip', type: 'FS' },
{ id: 'd2', from: 'strip', to: 'handover', type: 'FS' },
];
export function Gantt() {
return (
<BirchGantt
style={{ height: 520 }}
licenseKey={'LQ1.your-key'}
projectStart={'2026-03-02'}
tasks={tasks}
dependencies={dependencies}
showCriticalPath
onTaskChange={({ task }) => console.info('Rescheduled', task.id)}
/>
);
}Measured: 5,000 tasks with 8,000 links schedule in 60–80 ms, and a single edit reschedules in 8–14 ms.
How it fits React
Birch UI Gantt schedules on working calendars with a forward and backward pass, finish-to-start, start-to-start, finish-to-finish and start-to-finish links, constraints and baselines. In React it mounts through the adapter’s generic widget factory, the same contract every product follows.
The React adapter is a thin component around the Gantt chart engine. Props that change by identity go to update(); the widget is never recreated, so StrictMode double effects and re-renders cost nothing.
Keep columns, option objects and callbacks stable at module scope or in useMemo, and pass a new array when rows change. The package ships the "use client" directive, so it drops into the Next.js App Router. On the server it renders an empty container.
Questions
Is the React Gantt production ready?
It is a feature-complete v0.1 in early access: the API may still change before 1.0, and every update is free to buyers.
Can it import MS Project files?
Yes, MS Project XML in both directions, without DOMParser, plus JSON and a headless engine for workers.
Does the React Gantt chart work with Next.js server components?
Render it from a client component. The adapter carries "use client", imports nothing from window, and mounts in a layout effect.
How do I reach the imperative API from React?
Pass a ref. It holds the widget API after mount and null after unmount, typed from your row or event type.
Same engine, other pairings
Every Birch UI product runs in every adapter.