react js how to use router code example Example: how to use react router npm install react-router-dom