react-code-dataset / next.js /crates /next-custom-transforms /tests /fixture /next-font-with-directive /use-server /input.js
Download next.js/crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-server/input.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-server/input.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-server/input.js
-
curl -L -o input.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-server/input.js
225 Bytes
| 'use server' | |
| import React from 'react' | |
| import { Inter } from '@next/font/google' | |
| const inter = Inter() | |
| export async function myCoolServerAction() { | |
| return <div className={inter.className}>Hello from server action</div> | |
| } | |