Selects a cell's type discriminator — 'element' for React elements or 'link' for React links. Handy for branching on the kind of cell.
type
'element'
'link'
the resolved cell record
import { useCell, selectCellType } from '@joint/react';const type = useCell(cellId, selectCellType); Copy
import { useCell, selectCellType } from '@joint/react';const type = useCell(cellId, selectCellType);
Selects a cell's
typediscriminator —'element'for React elements or'link'for React links. Handy for branching on the kind of cell.