Download next.js/test/integration/app-document-import-order/pages/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 422 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-document-import-order/pages/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/app-document-import-order/pages/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-document-import-order/pages/index.js
422 Bytes
| import sideEffect from '../sideEffectModule' | |
| import RequiredByPage from '../requiredByPage' | |
| const sideEffects = sideEffect('page') | |
| function Hi() { | |
| return ( | |
| <div> | |
| <RequiredByPage /> | |
| <p>Hello world!</p> | |
| {sideEffects.map((arg, index) => ( | |
| <p key={arg} className="side-effect-calls"> | |
| {arg} | |
| </p> | |
| ))} | |
| </div> | |
| ) | |
| } | |
| Hi.getInitialProps = () => ({}) | |
| export default Hi | |