]> git.cworth.org Git - lmno.games/commit
Empathy: Let React now I'm a good boy and I won't mutate state
authorCarl Worth <cworth@cworth.org>
Tue, 9 Jun 2020 02:10:52 +0000 (19:10 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 9 Jun 2020 02:10:52 +0000 (19:10 -0700)
commitb28c923a50b2fc9001fdff69e18506ea02470fe5
tree28c4e5f4fb0c95b8d1ba81fd3503daa2e9761b6c
parentdee335da95357a8993a22aab01809d5bbd3e9b57
Empathy: Let React now I'm a good boy and I won't mutate state

By using React.memo() and PureComponent, React can avoid doing any
re-rendering of components that haven't changed at all.
empathy/empathy.jsx