Understand the react-pivottable layered architecture
masterThe library is organized into a hierarchy of components, where each layer delegates specific responsibilities. This allows you to use the full interactive UI or just render static snapshots of data.
PivotTableUI: The top-level interactive component providing the drag-and-drop interface. It is a "dumb" component and requires anonChangehandler to manage state.PivotTable: A non-interactive component used for outputting saved snapshots of a configuration. It delegates rendering to a specific renderer.Renderer: A component (likeTableRenderer) that handles the visual output. Renderers can accept additional custom properties.PivotData: The bottom layer that performs the actual mathematical computations and data summarization. It is a non-React object used by most renderers.
<PivotTableUI {...props} />
<PivotTable {...props} />
<Renderer {...props} />
PivotData(props)