页面上有很多 DOM 项,拖动速度非常慢

Dragging is very slow with many DOM items on page

React DnD 似乎无法很好地扩展。

我有一个包含 500 个放置目标的列表,拾取一个元素需要几秒钟。

有没有办法加快速度?

列表滚动非常流畅。

我正在使用 react-virtual 来减少现有 DOM 元素的数量,但遗憾的是绘图性能远远落后于本机渲染。

另外,一个有用的帖子...

https://github.com/react-dnd/react-dnd/issues/421

While technically you can stretch React DnD performance to ~3000 items, there’s no way for it to not lag after a certain point without changing the API (and making it less useful). If you have thousands of rows, I think you should be using virtualized lists anyway.