本页还没有译文
本页 12 段还没译成한국어,下面显示的是英文原文。Outlet
还没翻译译自英文(reactrouter.com)本页 12 段都还没译
Outlet
Framework Data Declarative
Summary
Renders the matching child route of a parent route or nothing if no child route matches.
import { Outlet } from "react-router";
export default function SomeParent() {
return (
<div>
<h1>Parent Content</h1>
<Outlet />
</div>
);
}Signature
function Outlet(props: OutletProps): React.ReactElement | nullProps
context
Provides a context value to the element tree below the outlet. Use when the parent route needs to provide values to child routes.
<Outlet context={myContextValue} />Access the context with useOutletContext.
AI 翻译查看英文原文