Download wp-calypso/client/blocks/data-center-picker/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/data-center-picker/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/data-center-picker/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/data-center-picker/docs/example.jsx
460 Bytes
| import { Card } from '@automattic/components'; | |
| import { useState } from 'react'; | |
| import DataCenterPicker from 'calypso/blocks/data-center-picker'; | |
| const DataCenterPickerExample = () => { | |
| const [ value, setValue ] = useState( '' ); | |
| return ( | |
| <div> | |
| <Card compact> | |
| <DataCenterPicker onChange={ setValue } value={ value } /> | |
| </Card> | |
| </div> | |
| ); | |
| }; | |
| DataCenterPickerExample.displayName = 'DataCenterPicker'; | |
| export default DataCenterPickerExample; | |