React spreadsheet

An Excel-compatible spreadsheet for React: 494 functions, dynamic arrays and xlsx round trips.

Spreadsheet

Early access

$399

Per developer, paid once, lifetime updates

A working starting point

npm install @birchui/react @birchui/core @birchui/spreadsheet
Show spreadsheet.jsx
spreadsheet.jsx
import { createReactComponent } from '@birchui/react';
import { spreadsheetDefinition } from '@birchui/spreadsheet';

const BirchSpreadsheet = createReactComponent(spreadsheetDefinition);

const workbook = {
  version: 1,
  sheets: [
    {
      name: 'Loan',
      cells: {
        A1: { value: 'Principal' },
        B1: { value: 250000 },
        A2: { value: 'Annual rate' },
        B2: { value: 0.0625, style: { numberFormat: '0.00%' } },
        A3: { value: 'Payment' },
        B3: { formula: '=PMT(B2/12, 360, -B1)' },
      },
    },
  ],
};

export function Spreadsheet() {
  return (
    <BirchSpreadsheet
      style={{ height: 520 }}
      licenseKey={'LQ1.your-key'}
      height={520}
      data={workbook}
      onCellChange={({ address, newValue }) => console.info(address, newValue)}
    />
  );
}

Measured: across 1,520 test formulas, 95.5% of results match LibreOffice. A dependency graph recalculates only the cells an edit affects.

How it fits React

Birch UI Spreadsheet combines a formula engine with a virtualized, keyboard-complete sheet. Formulas, styles, merges and frozen panes survive an xlsx round trip. React mounts it through the generic factory of its adapter.

The React adapter is a thin component around the spreadsheet 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

Does the React spreadsheet support LAMBDA?

Yes: LET, LAMBDA and dynamic arrays such as FILTER, SORT, UNIQUE and XLOOKUP, with #SPILL! when blocked.

Is it in early access?

Yes. It is a feature-complete v0.1; structured references and the spill operator are on the roadmap.

Does the React spreadsheet 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.