Download dev.to-clone/src/helper/htmlToJsx.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 146 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/dev.to-clone/src/helper/htmlToJsx.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/dev.to-clone/src/helper/htmlToJsx.js
-
curl -L -o htmlToJsx.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/dev.to-clone/src/helper/htmlToJsx.js
146 Bytes
| const parse = require('html-react-parser'); | |
| export const htmlToJsx = (html) => { | |
| const reactElement = parse(html); | |
| return reactElement; | |
| }; | |