Everything is simple.
You need to pass context to function if you want to manipulate state.
Actually, this mechanic has nothing related to Meteor. Its actually just raw JS with context binding.
Simple:
Your function doesn’t manipulate state/data/props - you don’t need to bind context.
Your function does manipulate state/data/props - you have to bind context.
In case function won’t have access to “this” overwise
h ok #1 explains it, I had been using
React.createClass({}) when creating components, which autobinds
everything. I guess this is being deprecated?
No, its just another way of react component declaration.