now there is a function that needs to determine the permission of the address of the route. If you do not have the permission, you will not enter the route. 
 saw this 
const getConfirmation = (message, callback) => {
  const allowTransition = window.confirm(message)
  callback(allowTransition)
}
<BrowserRouter getUserConfirmation={getConfirmation}/>but if you click cancel, you will still enter the route. is there any divine guidance?
