In terms of performance, does the static array make more sense within the class component or outside of it?

前端 未结 0 347
余生分开走
余生分开走 2020-12-16 11:42

Does the following difference between the snippets make any difference in terms of performance?

Option 1: Data inside of Class Component

import React,          


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