Download wp-calypso/client/blocks/conversation-caterpillar/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/conversation-caterpillar/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/conversation-caterpillar/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/conversation-caterpillar/docs/example.jsx
750 Bytes
| import { Card } from '@automattic/components'; | |
| import { size } from 'lodash'; | |
| import { ConversationCaterpillar } from 'calypso/blocks/conversation-caterpillar'; | |
| import { comments, commentsTree } from 'calypso/blocks/conversation-caterpillar/docs/fixtures'; | |
| const ConversationCaterpillarExample = () => { | |
| return ( | |
| <div className="design-assets__group"> | |
| <Card> | |
| <ConversationCaterpillar | |
| comments={ comments } | |
| blogId={ 123 } | |
| postId={ 12 } | |
| commentsTree={ commentsTree } | |
| commentCount={ size( comments ) } | |
| commentsToShow={ {} } | |
| expandComments={ () => {} } | |
| /> | |
| </Card> | |
| </div> | |
| ); | |
| }; | |
| ConversationCaterpillarExample.displayName = 'ConversationCaterpillar'; | |
| export default ConversationCaterpillarExample; | |