Download next.js/crates/next-custom-transforms/tests/loader/issue-31627/input.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/loader/issue-31627/input.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-custom-transforms/tests/loader/issue-31627/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/issue-31627/input.js
478 Bytes
| import { useEffect } from 'react' | |
| import { select, selectAll } from 'd3-selection' | |
| export default function Home() { | |
| useEffect(() => { | |
| new MyClass() | |
| }, []) | |
| return ( | |
| <svg> | |
| <g className="group"> | |
| <path /> | |
| <path /> | |
| </g> | |
| <g className="group"> | |
| <path /> | |
| <path /> | |
| </g> | |
| </svg> | |
| ) | |
| } | |
| class MyClass { | |
| constructor() { | |
| selectAll('.group').each(function () { | |
| select(this).selectAll('path') | |
| }) | |
| } | |
| } | |