Download next.js/packages/next/src/client/next.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/next.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/client/next.ts
-
curl -L -o next.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/next.ts
400 Bytes
| import './webpack' | |
| import '../lib/require-instrumentation-client' | |
| import { initialize, hydrate, version, router, emitter } from './' | |
| declare global { | |
| interface Window { | |
| next: any | |
| } | |
| } | |
| window.next = { | |
| version, | |
| // router is initialized later so it has to be live-binded | |
| get router() { | |
| return router | |
| }, | |
| emitter, | |
| } | |
| initialize({}) | |
| .then(() => hydrate()) | |
| .catch(console.error) | |