簡體   English   中英

使用withStateHandler和withState + withHandler之間的區別

[英]Difference between using withStateHandler and withState + withHandler

請問withStateHandler比使用一些好處withStatewithHandler在一起嗎?

為什么要使用withStateHandler在所有的時候,我可以得到相同的功能withStatewithHandler

withStateHandler幾乎沒有什么好處,例如less codefewer function imports ,但這不會帶來很多性能提升,實際上,如果您不必擔心代碼拆分的大小或類似的事情,它們將以相同的方式執行相同的操作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM