npm package react-router-dom code example Example: npm react router dom $ npm install --save react-router-dom