I am new to React so I apologise in advance. How can I stop unmounting a component in React please. I would like to warn the user in my application of losing all the unsaved changes before leaving the form editing page. Is that possible please?
It is a single page application that renders components based on the current state of the application (Not using React-router)
Many thanks in advance