|
Download wp-calypso/client/components/data/query-all-domains/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-all-domains/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/data/query-all-domains/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-all-domains/README.md
541 Bytes
| # Query All Domains | |
| `<QueryAllDomains />` is a React component used in managing network requests for all of a user's domains across sites. | |
| ## Usage | |
| Render the component. It does not accept any properties and/or children, nor does it render any elements to the page. | |
| ```jsx | |
| import QueryAllDomains from 'calypso/components/data/query-all-domains'; | |
| export default function listAllDomains( { domains } ) { | |
| return ( | |
| <div> | |
| <QueryAllDomains /> | |
| { domains.map( ( domain ) => ( | |
| <li>{ domain.domain }</li> | |
| ) ) } | |
| </div> | |
| ); | |
| } | |
| ``` | |