Add explination of autoBind to DOM Event Listener tip
Levi McCallum committed
Nov 20, 2013 at 11:29 UTC
ceaf3fba32d7c8a9ab956a22fe5eacb020ce9a26
1 file changed
+2
docs/tips/11-dom-event-listeners.md
+2
@@ -42,3 +42,5 @@ React.renderComponent(<Box />, mountNode);
42
```
43
44
`componentDidMount` is called after the component is mounted and has a DOM representation. This is often a place where you would attach generic DOM events.
45
+
46
+Notice that the event callback is bound to the react component and not the original element. React automatically binds methods to the current component instance for you through a process of [autobinding](../docs/interactivity-and-dynamic-uis.html#under-the-hood-autobind-and-event-delegation).