how to write router in react js code example Example: how to do routes react js npm install react-router-dom