Is it safe to use conditional rendering in react-router-dom for authentication? In the code below:
If user auth