Download react-color/docs/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-color/docs/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-color/docs/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-color/docs/index.js
415 Bytes
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| // import ReactDOMServer from 'react-dom-server' | |
| import Home from './components/home/Home' | |
| // const html = ReactDOMServer.renderToString(React.createElement(Home)) | |
| // console.log(html) | |
| if (typeof document !== 'undefined') { | |
| ReactDOM.render( | |
| React.createElement(Home), | |
| document.getElementById('root') | |
| ) | |
| } | |
| module.exports = Home | |