Download react-hook-form/scripts/README/Previews/Helper.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/scripts/README/Previews/Helper.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/scripts/README/Previews/Helper.js
-
curl -L -o Helper.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/scripts/README/Previews/Helper.js
331 Bytes
| import { toProfile, toAvatar } from 'Link'; | |
| export default function generate(helper) { | |
| const { github, avatar } = helper; | |
| const lines = [ | |
| `<a href = '${toProfile(github)}'>`, | |
| ` <img`, | |
| ` width = 25`, | |
| ` src = '${toAvatar(avatar)}'`, | |
| ` />`, | |
| `</a>`, | |
| ]; | |
| return lines.join('\n'); | |
| } | |