Download wp-calypso/client/blocks/author-compact-profile/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 716 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/author-compact-profile/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/author-compact-profile/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/author-compact-profile/docs/example.jsx
716 Bytes
| import { Card } from '@automattic/components'; | |
| import { Component } from 'react'; | |
| import AuthorCompactProfile from 'calypso/blocks/author-compact-profile'; | |
| export default class AuthorCompactProfileExample extends Component { | |
| static displayName = 'AuthorCompactProfileExample'; | |
| render() { | |
| const author = { | |
| avatar_URL: 'https://0.gravatar.com/avatar/cf55adb1a5146c0a11a808bce7842f7b?s=96&d=identicon', | |
| name: 'Bob The Tester', | |
| URL: 'http://wpcalypso.wordpress.com', | |
| }; | |
| return ( | |
| <Card> | |
| <AuthorCompactProfile | |
| author={ author } | |
| siteName="Bananas" | |
| siteUrl="http://wpcalypso.wordpress.com" | |
| followCount={ 123 } | |
| feedId={ 1 } | |
| siteId={ null } | |
| /> | |
| </Card> | |
| ); | |
| } | |
| } | |