Download next.js/crates/next-custom-transforms/tests/loader/example/input.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/loader/example/input.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-custom-transforms/tests/loader/example/input.js
-
curl -L -o input.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/loader/example/input.js
240 Bytes
| import fs from 'fs' | |
| import other from 'other' | |
| const [a, b, ...rest] = fs.promises | |
| const [foo, bar] = other | |
| export async function getStaticProps() { | |
| a | |
| b | |
| rest | |
| bar | |
| } | |
| class Foo {} | |
| export default function Home() { | |
| return <div /> | |
| } | |