Guest User

Untitled

a guest
Feb 28th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var subscribed = new ReactiveVar(false); // Going off memory, i think its like that
  2.  
  3. getMeteorData() {
  4.   let subscribed = subscribed.get(); // Important to call get so that getMeteorData continues to watch this.
  5.   return { subscribed }; // Same as { subscribed: subscribed } in babel compiler.
  6. }
  7.  
  8. render() {
  9.   return (<div>{ this.data.subscribed ? 'Subscribed' : 'Click here to subscribed' }</div>);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment