UNPKG

mobx--awesome-connect

Version:

Not official React bindings for mobX, but performant and flexible

16 lines (13 loc) 314 B
import 'babel-polyfill'; import React, { Component } from 'react'; import { connect } from '../../lib'; const ListView = (props, context) => { return ( <div> { props.store.map( (ele, index) => <div key={index}>{ele.title}</div>) } </div> ) } module.exports = connect()(ListView);