Download wp-calypso/client/components/data/query-countries/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-countries/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/data/query-countries/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-countries/index.jsx
294 Bytes
| import PropTypes from 'prop-types'; | |
| import { Component } from 'react'; | |
| export default class QueryCountries extends Component { | |
| static propTypes = { | |
| requestCountries: PropTypes.func.isRequired, | |
| }; | |
| componentDidMount() { | |
| this.props.requestCountries(); | |
| } | |
| render() { | |
| return null; | |
| } | |
| } | |