Download next.js/examples/cms-sanity/app/(blog)/date.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 232 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-sanity/app/(blog)/date.tsx
- Command line
-
hf download 'hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-sanity/app/(blog)/date.tsx'
-
curl -L -o date.tsx 'https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-sanity/app/(blog)/date.tsx'
232 Bytes
| import { format } from "date-fns"; | |
| export default function DateComponent({ dateString }: { dateString: string }) { | |
| return ( | |
| <time dateTime={dateString}> | |
| {format(new Date(dateString), "LLLL d, yyyy")} | |
| </time> | |
| ); | |
| } | |