WidgetContainer runs data through the transform pipeline and provides the result to its children via a render prop. When width or height are CSS strings, a ResizeObserver measures the container and passes pixel dimensions to children.
<WidgetContainer data={rawRows} transforms={[flatten, groupBy('region')]}> {(data, width, height) => ( <ViewSwitcher views={[{ id: 'bar' }, { id: 'table' }]} data={data} width={width} height={height} /> )}</WidgetContainer> Copy
<WidgetContainer data={rawRows} transforms={[flatten, groupBy('region')]}> {(data, width, height) => ( <ViewSwitcher views={[{ id: 'bar' }, { id: 'table' }]} data={data} width={width} height={height} /> )}</WidgetContainer>
WidgetContainer runs data through the transform pipeline and provides the result to its children via a render prop. When width or height are CSS strings, a ResizeObserver measures the container and passes pixel dimensions to children.