React Modal Hook Versions Save

Syntactic sugar for handling modals using React Hooks

3.0.0

4 years ago

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.