/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/blocks/post-edit-button/docs/example.jsx
17 строк
465 B
Jarda Snajdr
Devdocs: remove them (#110044)
04 май 2026, 10:26
Не верифицирован
04 май 2026, 10:26
e50cca3
Код
Авторство
О чём код?
import { PureComponent } from 'react'; import PostEditButton from 'calypso/blocks/post-edit-button'; export default class PostEditButtonExample extends PureComponent { static displayName = 'PostEditButtonExample'; render() { const post = { ID: 123, type: 'post' }; const site = { slug: 'example.com' }; return ( <div className="design-assets__group"> <h2>Post Edit Button</h2> <PostEditButton post={ post } site={ site } /> </div> ); } }