Download next.js/test/e2e/browserslist/app/pages/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/browserslist/app/pages/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/browserslist/app/pages/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/browserslist/app/pages/index.js
355 Bytes
| import React, { useEffect } from 'react' | |
| const helloWorld = 'hello world' | |
| class MyComp extends React.Component { | |
| render() { | |
| return <h1>Hello World</h1> | |
| } | |
| } | |
| export default function Page() { | |
| useEffect(() => { | |
| ;(async () => { | |
| console.log(helloWorld) | |
| })() | |
| }, []) | |
| return ( | |
| <> | |
| {helloWorld} | |
| <MyComp /> | |
| </> | |
| ) | |
| } | |