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