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