Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/utils/lib/factory/context"

Index

Functions

createContextFactory

  • createContextFactory<T>(object: T): { StoreContext: Context<T>; StoreProvider: FC<{}>; useStores: useStores }
  • Create context relevant objects to use within React.

    Type parameters

    • T

    Parameters

    • object: T

    Returns { StoreContext: Context<T>; StoreProvider: FC<{}>; useStores: useStores }

    • StoreContext: Context<T>
    • StoreProvider: FC<{}>
    • useStores: useStores

Generated using TypeDoc