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