Download next.js/examples/cms-agilitycms/lib/components/rich-text-area.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-agilitycms/lib/components/rich-text-area.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-agilitycms/lib/components/rich-text-area.tsx
-
curl -L -o rich-text-area.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-agilitycms/lib/components/rich-text-area.tsx
274 Bytes
| const setHTML = (textblob) => { | |
| return { __html: textblob }; | |
| }; | |
| export default function RichTextArea({ fields }) { | |
| const { textblob } = fields; | |
| return ( | |
| <div | |
| className="default-rich-text-area" | |
| dangerouslySetInnerHTML={setHTML(textblob)} | |
| /> | |
| ); | |
| } | |