You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should warn when the leaf route has no element prop. In this case, the element would default to an <Outlet> that renders null, which can be confusing.
letroutes=(<Routes>{/* When the URL is /layout, this route will match but won't render anything! */}<Routepath="layout"><Routepath="page"element={...}/></Route></Routes>);
The text was updated successfully, but these errors were encountered:
We should warn when the leaf route has no
element
prop. In this case, the element would default to an<Outlet>
that rendersnull
, which can be confusing.The text was updated successfully, but these errors were encountered: