卡组件存在严重的ui性能问题

时间:2019-11-10 08:50:15

标签: reactjs performance material-ui

我正在用Material Ui实现React Beautiful Dnd,特别是这种情况:https://react-beautiful-dnd.netlify.com/?path=/story/board--large-data-set

我在一个视图中有大约300个Material UI Card组件。我正在使用React.Memo来优化更改。使用300张Material UI卡进行渲染大约需要5000毫秒,而使用@ emotion / styled组件进行渲染则只需要1000毫秒。

我试图调试该问题,但看起来它位于Material Ui内部。是什么让它如此沉重?有更好的解决方案吗?

0 个答案:

没有答案