Download next.js/test/e2e/esm-externals/pages/ssg.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/esm-externals/pages/ssg.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/esm-externals/pages/ssg.js
-
curl -L -o ssg.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/esm-externals/pages/ssg.js
414 Bytes
| import React from 'preact/compat' | |
| import World1 from 'esm-package1/entry' | |
| import World2 from 'esm-package2/entry' | |
| import World3 from 'invalid-esm-package/entry' | |
| export async function getStaticProps() { | |
| return { | |
| props: { | |
| worlds: `${World1}+${World2}+${World3}`, | |
| }, | |
| } | |
| } | |
| export default function Index({ worlds }) { | |
| return ( | |
| <p> | |
| Hello {World1}+{World2}+{World3}+{worlds} | |
| </p> | |
| ) | |
| } | |