Syntactic sugar for handling modals using React Hooks
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.ModalProvider#container
prop has been renamed to rootComponent
and reused for specifying mount node.ModalRoot
has been unexposed to prevent unsupported use cases.