@joint/react
    Preparing search index...

    Function useCreateLink

    • A custom hook that adds a link to the graph.

      Type Parameters

      • T extends GraphLink<string> | Link<Attributes, ModelSetOptions>

      Returns (link: T) => void

      A function that adds the link to the graph.

      const addLink = useCreateLink();
      addLink({ id: '1', source: { id: '2' }, target: { id: '3' } });