Examples
Callback Ref On Table Container Props
A callback ref is passed through stTableContainerProps. The ref gets the container node and is cleaned up when the table goes away.
Try it
- Look at the table. Three rows show:
Mason,AndersonandLily. - Click
Unmount. The table goes away.
Related guides
Callback Ref On Provider Container
A table built from ST_TableProvider and ST_TableContainer passes a callback ref to the container. The ref gets the container node and is cleaned up when the table goes away.
Ref Object On Table Container Props
A plain ref object is passed through stTableContainerProps. It holds the container node, and is set back to null when the table goes away.