Reincharts
    Preparing search index...
    • Returns a ref callback function for managing interactive node references by type.

      When used as a React ref callback, this function will:

      • Save the given node under this.nodes[type] if the node is defined.
      • Remove the node reference for type if the node is not defined.
      • Initialize this.nodes if it does not exist.

      Parameters

      • type: any

        The key under which to store the node reference.

      Returns (node: any) => void

      A function to be used as a React ref callback.