DialogsContextcomponent

DialogsContext({ children }: DialogsContextProps): ReactElement
ParamType
childrenDialogsContextProps
The subtree that can open dialogs via requireDialogs(). required
Return
ReactElement
The dialogs context provider wrapping children.

Provider that creates a fresh DialogsStore and shares it with its subtree.

Examples

<DialogsContext><App /></DialogsContext>