/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/blocks/comment-button/docs/example.jsx
20 строк
450 B
Marko Andrijasevic
React: add new JSX transform (#56451)
29 сен 2021, 13:49
Не верифицирован
29 сен 2021, 13:49
f2e6f88
Код
Авторство
О чём код?
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> ); } }