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