Download wp-calypso/client/controller/web-util.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/controller/web-util.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/controller/web-util.js
-
curl -L -o web-util.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/controller/web-util.js
258 Bytes
| import ReactDom from 'react-dom'; | |
| export function render( context ) { | |
| ReactDom.render( context.layout, document.getElementById( 'wpcom' ) ); | |
| } | |
| export function hydrate( context ) { | |
| ReactDom.hydrate( context.layout, document.getElementById( 'wpcom' ) ); | |
| } | |