how to add react router dom in react js code example Example: npm react router dom $ npm install --save react-router-dom