How to use routers in React code example Example: install react router $ npm install --save react-router