/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/components/formatted-header/docs/example.jsx
22 строки
573 B
Marko Andrijasevic
React: add new JSX transform (#56451)
29 сен 2021, 13:49
Не верифицирован
29 сен 2021, 13:49
f2e6f88
Код
Авторство
О чём код?
import { Fragment, PureComponent } from 'react'; import FormattedHeader from 'calypso/components/formatted-header'; export default class FormattedHeaderExample extends PureComponent { static displayName = 'FormattedHeaderExample'; render() { return ( <Fragment> <FormattedHeader headerText="This is the header." subHeaderText="This is the optional subheader." /> <FormattedHeader headerText="This is the compact on mobile header." subHeaderText="This is the optional subheader." compactOnMobile /> </Fragment> ); } }