Download wp-calypso/client/hosting/performance/controller.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/controller.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/hosting/performance/controller.tsx
-
curl -L -o controller.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/controller.tsx
431 Bytes
| import PageViewTracker from 'calypso/lib/analytics/page-view-tracker'; | |
| import { SitePerformance } from './site-performance'; | |
| import type { Context as PageJSContext } from '@automattic/calypso-router'; | |
| export function sitePerformance( context: PageJSContext, next: () => void ) { | |
| context.primary = ( | |
| <> | |
| <PageViewTracker path="/sites/performance/:site" title="Site Performance" /> | |
| <SitePerformance /> | |
| </> | |
| ); | |
| next(); | |
| } | |