DialogsContextcomponent
DialogsContext({ children }: DialogsContextProps): ReactElement| Param | Type | |
|---|---|---|
children | DialogsContextProps | 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>