mpontus/react-modal-hook
Syntactic sugar for handling modals using React Hooks
1 Releases
Latest: 6y ago
3.0.0Latest
📦 ModalProvider
- `ModalProvider#container` prop has been reused to be able to specify custom mount node. By default `document.body` will be used.
- `ModalProvider#rootComponent` is taking over for the `container` prop, use this prop to specify custom container component for modal nodes.
💥 🧱 Breaking Changes
- `ModalProvider#container` prop has been renamed to `rootComponent` and reused for specifying mount node.
- `ModalRoot` has been unexposed to prevent unsupported use cases.
