how to use with router in reactjs code example Example: how to use react router npm install react-router-dom