Skip to content

Commit 8633699

Browse files
committed
Merge pull request facebook#2418 from spencer48/patch-1
(docs) Added commas to increase readability.
2 parents 17b190b + a55a3f7 commit 8633699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ If you'd like to use React on a touch device such as a phone or tablet, simply c
4545

4646
## Under the Hood: Autobinding and Event Delegation
4747

48-
Under the hood React does a few things to keep your code performant and easy to understand.
48+
Under the hood, React does a few things to keep your code performant and easy to understand.
4949

50-
**Autobinding:** When creating callbacks in JavaScript you usually need to explicitly bind a method to its instance such that the value of `this` is correct. With React, every method is automatically bound to its component instance. React caches the bound method such that it's extremely CPU and memory efficient. It's also less typing!
50+
**Autobinding:** When creating callbacks in JavaScript, you usually need to explicitly bind a method to its instance such that the value of `this` is correct. With React, every method is automatically bound to its component instance. React caches the bound method such that it's extremely CPU and memory efficient. It's also less typing!
5151

5252
**Event delegation:** React doesn't actually attach event handlers to the nodes themselves. When React starts up, it starts listening for all events at the top level using a single event listener. When a component is mounted or unmounted, the event handlers are simply added or removed from an internal mapping. When an event occurs, React knows how to dispatch it using this mapping. When there are no event handlers left in the mapping, React's event handlers are simple no-ops. To learn more about why this is fast, see [David Walsh's excellent blog post](http://davidwalsh.name/event-delegate).
5353

0 commit comments

Comments
 (0)