One of the ways to handle navigation in React applications is using react-router and it is pretty easy to use, let's see an example:
react-router