UNPKG

mobx--awesome-connect

Version:

Not official React bindings for mobX, but performant and flexible

20 lines (16 loc) 317 B
import React, { Component } from 'react'; export default class Provide extends Component { getChildContext() { return { store: this.props.store } } render() { return ( <div> {this.props.children} </div> ) } } Provide.childContextTypes = { store: React.PropTypes.object };