Options
All
  • Public
  • Public/Protected
  • All
Menu

Module providers/EventsProvider

This file contains mix of React components and hooks useful for obtaining the EventsContext from any component in the project.

Variables

Functions

Variables

Const Context

Context: Context<undefined | EventsContext> = React.createContext<EventsContext | undefined>(undefined)

Definition of React EventsContext context. Default value is undefined

Functions

Const EventsProvider

  • EventsProvider(__namedParameters: object): Element
  • React Component wrapping obtained children with EventsContext provider, so useEvents can be called from any component in the children subtree. This is the only place where createEventsContext is called.

    Parameters

    • __namedParameters: object
      • children: undefined | null | string | number | false | true | object | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal

    Returns Element

Const useEvents

Generated using TypeDoc