confused about Lazy Initialization of React useState

后端 未结 0 1514
余生分开走
余生分开走 2021-02-06 04:54

According to the official React docs on useState,

If the initial state [to be passed to useState] is the result of an expensive computation, you may provide

相关标签:
回答
  • 消灭零回复
提交回复
热议问题