值是相同的(按引用等于)。避免重新渲染

时间:2019-10-18 23:21:55

标签: performance react-native components render

我正在React Native中构建一个应用程序,当我检查console.log时,我经常会看到此消息“ Value is the same (equal by reference). Avoidable re-render!" 我认为我的组件经常重新渲染,那么,在这种情况下我实际上可以做什么?任何建议都会有所帮助,在此先感谢!

0 个答案:

没有答案
相关问题