import from react router code example Example: react-router react-router-dom npm install react-router-dom