import React, { Component } from 'react'; import { List, ListItem, ListSubHeader, ListDivider } from 'react-toolbox/lib/list'; import Chip from 'react-toolbox/lib/chip'; class Metrics extends Component { componentDidMount () { this.props.fetchMetrics(); } render () { const { globalCount, clientList } = this.props; return ( {clientList.map(({ name, count, ping, appName }, i) => {count}]} key={name + i} caption={appName} legend={`${name} pinged ${ping}`} /> )} ); } } export default Metrics;