How to add prop type validation with useMemo

32 Views Asked by At

I am using useMemo to help me create a table. I am getting prop-type errors on the Cell property.

        () => [
            {
                Header: "Action",
                id: "linkTo", 
                accessor: "id",
                Cell: props => <ViewButton id={props.value}/>
            }
        ],
        []
    );

'value' is missing in props validation

0

There are 0 best solutions below