Skip to content

Commit e5ad475

Browse files
committed
Merge pull request reactjs#4 from kkpoon/master
add link of bind to mozillia javascript API doc
2 parents 8afc691 + f6335cc commit e5ad475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ UserList(data.users, likesPerUser, updateUserLikes);
164164

165165
Unfortunately, since there are so many lists of lists all over the place in UIs, it becomes quite a lot of boilerplate to manage that explicitly.
166166

167-
We can move some of this boilerplate out of our critical business logic by deferring execution of a function. For example, by using "currying" (`bind` in JavaScript). Then we pass the state through from outside our core functions that are now free of boilerplate.
167+
We can move some of this boilerplate out of our critical business logic by deferring execution of a function. For example, by using "currying" ([`bind`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) in JavaScript). Then we pass the state through from outside our core functions that are now free of boilerplate.
168168

169169
This isn't reducing boilerplate but is at least moving it out of the critical business logic.
170170

0 commit comments

Comments
 (0)