facebookarchive / react-meteor

React rendering for Meteor apps
948 stars 113 forks source link

setProps if they change reactively #83

Closed mikowals closed 6 years ago

mikowals commented 9 years ago

Currently, if a React template gets passed reactive props (by a Blaze template), it never updates to reflect them.

This updates the props with an autorun, so now a React template can be used inside a Blaze template receiving props from reactive helper functions. For example, with a players helper defined on UI.body the leaderboard example could call {{> Leaderboard players=players}}.