react-code-dataset / next.js /crates /next-custom-transforms /tests /fixture /next-dynamic /with-options /input.js
Download next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/with-options/input.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/with-options/input.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/with-options/input.js
-
curl -L -o input.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/next-dynamic/with-options/input.js
394 Bytes
| import dynamic from 'next/dynamic' | |
| const DynamicComponentWithCustomLoading = dynamic( | |
| () => import('../components/hello'), | |
| { loading: () => <p>...</p> } | |
| ) | |
| const DynamicClientOnlyComponent = dynamic( | |
| () => import('../components/hello'), | |
| { ssr: false } | |
| ) | |
| const DynamicClientOnlyComponentWithSuspense = dynamic( | |
| () => import('../components/hello'), | |
| { ssr: false, suspense: true } | |
| ) | |