|
Download wp-calypso/client/blocks/data-center-picker/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/data-center-picker/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/data-center-picker/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/data-center-picker/README.md
542 Bytes
Data Center Picker (TSX)
This component displays a data center picker. It lets the user choose between our recommended data center or through a custom list of avaliable data centers.
How to use
import DataCenterPicker from 'calypso/blocks/data-center-picker';
function render() {
return <DataCenterPicker />;
}
Props
onChange (func)- A function to handle the event callback when choosing a data center or picking the recommended one.value (string)- The picked data center (this is a controlled component).