/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/components/share-button/docs/example.jsx
37 строк
842 B
Griffith Chen
Remove lodash keys, values, and size in favor of native JS (#111717)
17 июн 2026, 02:15
Не верифицирован
17 июн 2026, 02:15
f9bcdd3
Код
Авторство
О чём код?
import { PureComponent } from 'react'; import ShareButton from '../'; import services from '../services'; export default class ShareButtonExample extends PureComponent { static displayName = 'ShareButton'; render() { return ( <div> <div> { Object.keys( services ).map( ( service ) => ( <ShareButton key={ service } size={ 48 } url="https://wordpress.com" title="Share your thoughts and ideas on WordPress.com" service={ service } /> ) ) } </div> <div> { Object.keys( services ).map( ( service ) => ( <ShareButton key={ service } size={ 48 } url="https://wordpress.com" title="Share your thoughts and ideas on WordPress.com" service={ service } color={ false } /> ) ) } </div> </div> ); } }