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