Home
Sign Up
Sign In
WeiShurong's recent timeline updates
WeiShurong
V2EX member #59549, joined on 2014-04-02 12:42:14 +08:00
WeiShurong
提问
技术话题
好玩
工作信息
交易信息
城市相关
WeiShurong's recent replies
May 30, 2020
Replied to a topic by
Lostbit
›
程序员
›
关于 react-hooks 一个可能跟性能有关的疑问
楼上都说的很好了。补充一下,如果你真的很在乎 render 的次数,你可以使用 React.memo 包裹函数式组件,这样只有 prop 变更时,才会调用(和 shouldComponentUpdate 一样)
»
More replies by WeiShurong
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
5279 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms ·
UTC 08:40
·
PVG 16:40
·
LAX 01:40
·
JFK 04:40
♥ Do have faith in what you're doing.
❯