Renders a Modal asking the user to confirm they want to navigate away from the current page. Only renders when a
<NavigationPrompt> is also rendered somewhere in the application and cannot be rendered directly. This component
does not need to be used directly ever, instead only use <NavigationPrompt>.
Note: this is not a regular component as it does not return a JSX element, rather uses ReactDOM to render an element
directly.
Renders a Modal asking the user to confirm they want to navigate away from the current page. Only renders when a
<NavigationPrompt>is also rendered somewhere in the application and cannot be rendered directly. This component does not need to be used directly ever, instead only use<NavigationPrompt>.Note: this is not a regular component as it does not return a JSX element, rather uses ReactDOM to render an element directly.