I'm struggling to understand how context works in Facebook's React JS framework.
When passing a specification to React.createClass, certain methods (notably event handlers) seem to require the use of React.autoBind to 'bind callbacks to the component'. Other methods (notably render()
) don't have this requirement but still happily reference this.props
or this.state
.
What is the context of 'this' as used by the render()
method, if it's not the component ?