react route documentation code example Example 1: routes react npm install --save react-router-dom Example 2: react route npm install react-router-dom