poetic:react-meteor-data

v0.0.3-rc.1Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Wrap your component to get meteor data, handle subscriptions, and stop updates due to meteor data causing re-render.

SomeClass = MeteorData(React.createClass({
  render(){
    // Use the data
    this.props.item;

    //...
  }
}),
{
  getData(){
    return {item: Item.findOne()};
  },
});