/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/blocks/reader-post-card/docs/example.jsx
16 строк
407 B
Marko Andrijasevic
React: add new JSX transform (#56451)
29 сен 2021, 13:49
Не верифицирован
29 сен 2021, 13:49
f2e6f88
Код
Авторство
О чём код?
import ReaderPostCardBlock from 'calypso/blocks/reader-post-card'; import { posts, site } from './fixtures'; const ReaderPostCard = () => ( <div className="design-assets__group"> <div> { posts.map( ( item ) => ( <ReaderPostCardBlock key={ item.global_ID } post={ item } site={ site } /> ) ) } </div> </div> ); ReaderPostCard.displayName = 'ReaderPostCard'; export default ReaderPostCard;