MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Main

Function Main

packages/dev/s2-docs/src/Router.tsx:145–149  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

143}
144
145export function Main(props) {
146 // Reset key when page changes. This causes the content to scroll to the top.
147 let {currentPage} = useRouter();
148 return <main key={currentPage.url} {...props} />;
149}

Callers

nothing calls this directly

Calls 1

useRouterFunction · 0.70

Tested by

no test coverage detected