WarUI

React Component with Declarative Props

GRID-A02-F04P0baselinePlanned

Provides the <WarGrid> React component, which maps props to the grid config and grid events to callback props. Prop changes are diffed so that only changed options reach the core, which avoids a full re-render on every parent update.

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 React app with state-held rows and columns and a selection readout.

Expected behavior

Each state change sends only the changed keys to the core, and the diff log shows them. Selection changes update the parent state readout.

Planned API surface

<WarGrid>props mirroring GridConfigonCellClickonSelectionChangeref: GridApi

Acceptance criteria

  • Changing a single prop triggers exactly one core update call with only that key (pending)
  • A new array reference with identical rows and a stable getRowId does not reset scroll or selection (pending)
  • Callback prop identity changes do not re-initialize the grid (pending)
  • The ref exposes GridApi after mount and null after unmount (pending)