【问题标题】:Difference between using withStateHandler and withState + withHandler使用 withStateHandler 和 withState + withHandler 的区别
【发布时间】:2019-12-18 21:05:30
【问题描述】:

withStateHandler 是否比同时使用 withStatewithHandler 有一些好处?

当我可以使用withStatewithHandler 获得相同的功能时,我为什么还要使用withStateHandler

【问题讨论】:

    标签: recompose


    【解决方案1】:

    withStateHandler 几乎没有像less codefewer function imports 这样的好处,但这不会带来很大的性能提升,实际上,如果你不担心你的大小,它们会以相同的方式做同样的事情代码拆分或类似的东西

    【讨论】:

      猜你喜欢
      • 2019-02-01
      • 2018-01-24
      • 2018-07-29
      • 2016-10-17
      • 1970-01-01
      • 2015-03-12
      • 2019-04-02
      • 2010-11-09
      • 2017-01-30
      相关资源
      最近更新 更多