OneContextProvider function provides a mutable context to its component fields with change detection.

  • Parameters

    • props: IOneContextProviderProps

      The props object containing the following properties:

      • context

        The context value to be provided to child components. Default value is set to DEFAULT_VALUE.

      • children

        The child components to be wrapped by the context provider.

    Returns Element

    • The wrapped child components with the provided context value.