how to install react-router using npm code example Example: installing react router dom in npm yarn add react-router-dom