Download wp-calypso/client/blocks/follow-button/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/follow-button/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/follow-button/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/follow-button/docs/example.jsx
637 Bytes
| import { CompactCard as Card } from '@automattic/components'; | |
| import { PureComponent } from 'react'; | |
| import FollowButton from 'calypso/blocks/follow-button/button'; | |
| export default class FollowButtonExample extends PureComponent { | |
| static displayName = 'FollowButtonExample'; | |
| render() { | |
| return ( | |
| <div> | |
| <Card compact> | |
| <FollowButton following={ false } /> | |
| </Card> | |
| <Card compact> | |
| <FollowButton following /> | |
| </Card> | |
| <Card compact> | |
| <FollowButton disabled /> | |
| </Card> | |
| <Card compact> | |
| <h3>With custom label</h3> | |
| <FollowButton followLabel="Follow Tag" /> | |
| </Card> | |
| </div> | |
| ); | |
| } | |
| } | |