cytoplasmic
    Preparing search index...

    Function stopPropagation

    • Utility for stopping event propagation.

      Type Parameters

      • TEvent extends Event

      Parameters

      • Optionalhandler: (this: HTMLElement, ev: TEvent) => void

      Returns (this: HTMLElement, ev: TEvent) => void

      const onClick = e => console.log(e);
      <button onClick={stopPropagation(onClick)}/>