Download next.js/examples/cms-umbraco/components/post-body.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-umbraco/components/post-body.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-umbraco/components/post-body.tsx
-
curl -L -o post-body.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-umbraco/components/post-body.tsx
317 Bytes
| import styles from "./post-body.module.css"; | |
| type Props = { | |
| content: string; | |
| }; | |
| export default function PostBody({ content }: Props) { | |
| return ( | |
| <div className="max-w-2xl mx-auto"> | |
| <div | |
| className={styles.content} | |
| dangerouslySetInnerHTML={{ __html: content }} | |
| /> | |
| </div> | |
| ); | |
| } | |