How can I prevent the accessibility of a react component once the user has been logged out of the private route in react?
I have been working on really simple react pages just to clear my concepts. In this, i have a simple authentication method by storing the login info in users.json
file (This is just for the sake of simplifying the procedure).