Pure render 的好處之一就是可以在shouldComponentUpdate 中做效能優化。實作細節可看這篇文章,最常見的做法就是用shallow equal 檢查props 和state 有無改變,有改變才 ...
確定! 回上一頁