understanding react-router-dom and state code example Example: routes react npm install --save react-router-dom