def METHOD_NAME(component_class):
    c = component_class()
    assert c.to_plotly_json() == {
        "namespace": "TableComponents",
        "type": "Table",
        "props": {"children": None},
    }
    c = component_class(id="my-id")
    assert c.to_plotly_json() == {
        "namespace": "TableComponents",
        "type": "Table",
        "props": {"children": None, "id": "my-id"},
    }
    c = component_class(id="my-id", optionalArray=None)
    assert c.to_plotly_json() == {
        "namespace": "TableComponents",
        "type": "Table",
        "props": {"children": None, "id": "my-id", "optionalArray": None},
    }