Is react useMemo more performant than module level variable?

前端 未结 0 1271
花落未央
花落未央 2021-01-22 08:42

I need to hard-code some data (no need to change) for a react component, just wondering how i can do it in the most performant way. By performant, i mean fast execution as well

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