% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RouterProvider.R
\name{createRoutesFromElements}
\alias{createRoutesFromElements}
\title{createRoutesFromElements}
\usage{
createRoutesFromElements(...)
}
\arguments{
\item{...}{\code{\link{Route}} elements.}
}
\value{
A tag list of Route elements.
}
\description{
\url{https://api.reactrouter.com/v7/variables/react-router.createRoutesFromElements.html}
}
\details{
Optional compatibility alias. In R, \code{\link{createHashRouter}},
\code{\link{createBrowserRouter}}, and \code{\link{createMemoryRouter}}
accept \code{\link{Route}} elements directly, so wrapping them in
\code{createRoutesFromElements()} is not required. The function is kept
so that examples copied verbatim from the React Router v7 documentation
(\code{createHashRouter(createRoutesFromElements(...))}) keep working.

The actual JSX-to-route-object conversion always happens on the
JavaScript side; this R function simply bundles its arguments into a
tag list.
}
