As the role changes, our Containers data changes. These props go to our avatar component. Thus what reactive boils down to is functions rerunning when data changes. The UI reacts to the role change and serves a different outline color. This is what the getMeteorData mixin does for meteor apps. It sets up dependencies to the functions, in this case our Meteor.users find call. Whenever something about this dependency changes, our find will recall itself !

Software Engineer at Workpop, Inc.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store