UNPKG

reactors

Version:

View components and APIs that work web, mobile and desktop!

21 lines (18 loc) 447 B
/** * @module reactors * @flow **/ import React, {Component} from 'react'; export default class ReactorsListViewDOM extends Component { render() { const items: React.Element<*>[] = this.props.dataSource.map( (item: any, index: number) => ( <li key={index}> {this.props.renderRow(item)} </li> ) ); // $FlowFixMe This is by design return <ul style={this.props.style}>{items}</ul>; } }