React JSX Cell Renderers and Editors
Lets columns use React components as cell renderers and editors. They receive typed cell props and keep full access to context, theme and providers. Portals preserve the React tree, so context and error boundaries work as expected.
Planned. This page shows the specification from issue #178. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with a JSX badge renderer that consumes a ThemeContext and a JSX date editor column.
Expected behavior
Changing the context restyles the badges without a grid reinit. The editor commits through onCommit. A thrown error is contained by a per-cell boundary that shows a fallback while the other cells keep rendering.
Planned API surface
column.cellRenderer: React.ComponentType<CellProps<T>>column.cellEditor: React.ComponentType<EditorProps<T>>CellPropsEditorProps.onCommit/onCanceluseCellContext()Acceptance criteria
- Renderers receive context from providers above <WarGrid> (pending)
- A renderer that throws affects only its own cell and reports through onRendererError (pending)
- The editor receives focus on open and returns focus to the cell on commit or cancel (pending)
- Renderers for unmounted rows are unmounted, so the mounted count stays bounded under virtualization (pending)