import React from 'react'; import TableItem from './table_item'; import TableHeader from './table_header'; let Table = React.createClass({ propTypes: { columnMap: React.PropTypes.object.isRequired }, render() { if(this.props.itemList && this.props.itemList.length > 0) { return (
{this.props.itemList.map((item, i) => { return ( ); })}
); } else { return (

Loading

); } } }); export default Table;