Skip to content

Commit 8bcb483

Browse files
authored
docs: improve a/hc/lc pattern order explanation (#40)
Thank you. This cheatsheet is very useful. If I understood the logic, my changes to README.md may be helpful. If not, sorry :) Also ... Could you add shouldUpdateComponent and shouldComponentUpdate into the table (or an extension to the table below Note:). It isn't obvious to me which columns 'should', 'Update' and 'Component' are in because 'Update' is the verb (action?). Thanks.
1 parent 99c66fe commit 8bcb483

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
@@ -140,7 +140,7 @@ Take a look at how this pattern may be applied in the table below.
140140
| `handleClickOutside` | | `handle` | `Click` | `Outside` |
141141
| `shouldDisplayMessage` | `should` | `Display` | `Message` | |
142142

143-
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update on itself, and you are but controlling when it should be updated.
143+
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update itself, and you are only controlling _when_ it should update.
144144
> In other words, **high context emphasizes the meaning of a variable**.
145145
146146
---

0 commit comments

Comments
 (0)