Download wp-calypso/client/sites/v2/components/root.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/v2/components/root.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/sites/v2/components/root.tsx
-
curl -L -o root.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/v2/components/root.tsx
381 Bytes
| import { Outlet } from '@tanstack/react-router'; | |
| import ReactDOM from 'react-dom'; | |
| import Snackbars from 'calypso/dashboard/app/snackbars'; | |
| import { PageViewTracker } from 'calypso/dashboard/components/page-view-tracker'; | |
| export default function Root() { | |
| return ( | |
| <> | |
| <Outlet /> | |
| { ReactDOM.createPortal( <Snackbars />, document.body ) } | |
| <PageViewTracker /> | |
| </> | |
| ); | |
| } | |