@joint/react
    Preparing search index...

    Function useRemoveElement

    • A custom hook that removes an element from the graph by its ID.

      Returns (id: ID) => void

      A function that removes the element from the graph.

      const removeElement = useRemoveElement();
      removeElement('1');