Download wp-calypso/client/blocks/conversation-follow-button/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/conversation-follow-button/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/conversation-follow-button/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/conversation-follow-button/docs/example.jsx
543 Bytes
| /* | |
| */ | |
| import { CompactCard as Card } from '@automattic/components'; | |
| import { PureComponent } from 'react'; | |
| import ConversationFollowButton from 'calypso/blocks/conversation-follow-button/button'; | |
| export default class ConversationFollowButtonExample extends PureComponent { | |
| static displayName = 'ConversationFollowButton'; | |
| render() { | |
| return ( | |
| <div> | |
| <Card compact> | |
| <ConversationFollowButton isFollowing={ false } /> | |
| </Card> | |
| <Card compact> | |
| <ConversationFollowButton isFollowing /> | |
| </Card> | |
| </div> | |
| ); | |
| } | |
| } | |