Function Dynamic

  • Dynamically replace elements based on the value of a cell.

    Type Parameters

    • T

    Parameters

    Returns JSX.Element

    Example

    function MyComponent(props: {
    foo: number,
    }) {
    return <div>{props.foo}</div>;
    }

    const comp = cell(MyComponent);

    <Dynamic component={comp} foo={5}/>