const Item = styled.div`
//styles
`;
const Cell = (props) => {
const [isSelected, setIsSelected] = useState(false);
return (
<Item onClick={() => setIsSelected(!isSelected)} status={{key: isSelected}} />
)
}
const check = (prevProps, props) => prevProps === props;
const memoComp = React.memo(Cell, check)