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.

Love podcasts or audiobooks? Learn on the go with our new app.