Download next.js/test/e2e/async-modules/pages/gsp.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/async-modules/pages/gsp.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/async-modules/pages/gsp.jsx
-
curl -L -o gsp.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/async-modules/pages/gsp.jsx
257 Bytes
| const gspValue = await Promise.resolve(42) | |
| export async function getStaticProps() { | |
| return { | |
| props: { gspValue }, | |
| } | |
| } | |
| export default function Index({ gspValue }) { | |
| return ( | |
| <main> | |
| <div id="gsp-value">{gspValue}</div> | |
| </main> | |
| ) | |
| } | |