overreacted.io
How Are Function Components Different from Classes?
They’re a whole different Pokémon.

`useCallback` 如果忘記列 dependency,會導致 callback 一直記著過去 function 的 closure,這應該就是 memory leak 了吧 orz

這個 component 是一堆 checkbox,其中有些 checkbox 有 indeterminate state,所以有很多 handler。
我自己會覺得這種狀況底下好像寫成 class 會比較好讀。
https://github.com/answerfamily/ly/blob/master/src/components/LegislatorSections.js


