Skip to content

Commit cdfc04b

Browse files
committed
Amends readme.
1 parent 91e2d41 commit cdfc04b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ This allows you to deal with "simpler" props, for example; a boolean flag indica
9191

9292
So, to recap, some of the benefits of using this abstraction are:
9393

94-
- Easily implement `shouldComponentUpdate` based on the props.
95-
- The _query functions_ themselves can be formed into a reusable library of queries for all your components.
9694
- Simplify your components by moving the dimension logic away from them, which in turn is easier to test in isolation.
95+
- `shouldComponentUpdate` is implemented on your behalf.
96+
- The _query functions_ themselves can be formed into a reusable library of queries for all your components.
9797

9898
I am not trying to take away from `react-sizeme`, but I want to highlight that it's a bit more of a low level HOC, and if you want to use it you should be aware of the problems above and consider using your own abstraction or this one.
9999

0 commit comments

Comments
 (0)