Browse Source

autoBind -> Autobinding

We don't use the term autoBind anywhere any more.
main
Ben Alpert 11 years ago
parent
commit
0f5fd4e076
  1. 2
      docs/03-interactivity-and-dynamic-uis.md
  2. 2
      tips/11-dom-event-listeners.md

2
docs/03-interactivity-and-dynamic-uis.md

@ -46,7 +46,7 @@ With React you simply pass your event handler as a camelCased prop similar to ho
If you'd like to use React on a touch device (i.e. a phone or tablet), simply call `React.initializeTouchEvents(true);` to turn them on.
## Under the Hood: autoBind and Event Delegation
## Under the Hood: Autobinding and Event Delegation
Under the hood React does a few things to keep your code performant and easy to understand.

2
tips/11-dom-event-listeners.md

@ -43,4 +43,4 @@ React.renderComponent(<Box />, mountNode);
`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.
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).
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-autobinding-and-event-delegation).

Loading…
Cancel
Save