import React, { Component } from 'react'; import { connect } from 'react-redux'; class TorrentTable extends Component { render() { const { torrents } = this.props; return ( {Object.values(torrents).map(t => )}
name up down
{t.name} {t.rate_up} {t.rate_down}
); } } export default connect(state => ({ torrents: state.torrents }))(TorrentTable);