Download wp-calypso/client/blocks/comment-button/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/comment-button/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/comment-button/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/comment-button/docs/example.jsx
450 Bytes
| import { Card } from '@automattic/components'; | |
| import { Component } from 'react'; | |
| import CommentButton from 'calypso/blocks/comment-button'; | |
| export default class CommentButtonExample extends Component { | |
| static displayName = 'CommentButtonExample'; | |
| render() { | |
| return ( | |
| <div> | |
| <Card compact> | |
| <CommentButton commentCount={ 0 } /> | |
| </Card> | |
| <Card compact> | |
| <CommentButton commentCount={ 42 } /> | |
| </Card> | |
| </div> | |
| ); | |
| } | |
| } | |