install browserrouter react code example Example: react js BrowserRouter npm npm install --save react-browser-router