I will show you how to create privates for react project. I will use react-router-dom, react-redux for functionality creating.
Basically we will have private route component were in container we will check if private route could be displayed if not allowed then we will redirect to login route.