What is a container in Meteor React


I apologize if this question is a bit rudimentary, but I was wondering if someone could explain the purpose or benefit of a React Container inside Meteor.

I’ve seen in several tutorials instructions for creating a container, but none that I have found really explain the reason or purpose behind the container, or at least I’m not fully understanding it’s purpose.

Thank you,


It’s to sustain reactivity. Short version: If you don’t put your Collection.find() inside createContainer() you won’t get automatic updates when your collection changes. You’d have to work with redux-thunk or a lot of Tracker.autorun() to get the same functionality.

Awesome thank you for answering the question.