React Router

Routing using React Router DOM.

React Router

React Router is the standard routing library for React.

It enables navigation among views of various components in a React Application, allows changing the browser URL, and keeps the UI in sync with the URL.

You need to install react-router-dom.

Example

<BrowserRouter>
  <Routes>
    <Route path="/" element={<Home />} />
  </Routes>
</BrowserRouter>