---
title: BrowserRouter
---

# BrowserRouter

<!--
⚠️ ⚠️ IMPORTANT ⚠️ ⚠️ 

Thank you for helping improve our documentation!

This file is auto-generated from the JSDoc comments in the source
code, so please edit the JSDoc comments in the file below and this
file will be re-generated once those changes are merged.

https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/dom/lib.tsx
-->

[MODES: declarative]

## Summary

[Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.BrowserRouter.html)

A declarative [`<Router>`](../declarative-routers/Router) using the browser [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
API for client-side routing.

## Signature

```tsx
function BrowserRouter({ basename, children, window }: BrowserRouterProps)
```

## Props

### basename

Application basename

### children

[`<Route>`](../components/Route) components describing your route configuration

### window

[`Window`](https://developer.mozilla.org/en-US/docs/Web/API/Window) object override - defaults to the global `window` instance

