Download wp-calypso/client/components/data/query-domain-dns/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-domain-dns/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/data/query-domain-dns/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-domain-dns/index.jsx
362 Bytes
| import { useEffect } from 'react'; | |
| import { useDispatch } from 'react-redux'; | |
| import { fetchDns } from 'calypso/state/domains/dns/actions'; | |
| export default function QueryDomainDns( { domain, forceReload = false } ) { | |
| const dispatch = useDispatch(); | |
| useEffect( () => { | |
| dispatch( fetchDns( domain, forceReload ) ); | |
| }, [ dispatch, domain ] ); | |
| return null; | |
| } | |