mobx-bonsai
    Preparing search index...

    Function createContext

    • Creates a new context with no default value, thus making its default value undefined.

      Type Parameters

      • T

        Context value type.

      Returns Context<undefined | T>

    • Creates a new context with a default value.

      Type Parameters

      • T

        Context value type.

      Parameters

      • defaultValue: T

      Returns Context<T>