def get_component(cls, data: Var) -> rx.Component:
        """Get the component for the table.

        Args:
            data: The data var.

        Returns:
            The component.
        """
        cls._data = data
        cls.computed_vars["data"].add_dependency(cls, data)
        return rx.foreach(data, lambda d: rx.text(d.to_string()))
Get the component for the table.

        Args:
            data: The data var.

        Returns:
            The component.
        
tests/units/test_state.py