react-code-dataset / next.js /crates /next-custom-transforms /tests /fixture /next-font-with-directive /use-cache /input.js
Download next.js/crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-cache/input.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 210 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/next-font-with-directive/use-cache/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-cache/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-cache/input.js
210 Bytes
| 'use cache' | |
| import React from 'react' | |
| import { Inter } from '@next/font/google' | |
| const inter = Inter() | |
| export async function Cached({ children }) { | |
| return <div className={inter.className}>{children}</div> | |
| } | |