You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/00 Quick Start/FAQ.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ FAQ
7
7
8
8
### What is the @ syntax I see in the ES7 code examples?
9
9
10
-
First of all, you don't have to be use ES6 or ES7 for React DnD. They make some of the code patterns more succinct, but it's up to you whether to enable these transformations.
10
+
First of all, you don't have to use ES6 or ES7 for React DnD. They make some of the code patterns more succinct, but it's up to you whether to enable these transformations.
11
11
12
12
When I say “ES7”, I mean ES6 + a few extensions that *might* make it into ES7 (also known as ES2016). What I mark as the ES7 code in the docs is actually ES6 code + [class properties](https://gist.github.com/jeffmo/054df782c05639da2adb) + [decorators](https://github.com/wycats/javascript-decorators). You can enable these features by putting `{ "stage": 0 }` into your [.babelrc](https://babeljs.io/docs/usage/babelrc/) file. You can also [enable them individually](https://babeljs.io/docs/usage/experimental/).
How many items can React DnD handle at the same time?
23
-
There is a thousand items in this list.
23
+
There are a thousand items in this list.
24
24
With some optimizations like updating the state inside a <code>requestAnimationFrame</code> callback, it can handle a few thousand items without lagging.
25
25
After that, you're better off using virtual lists like <ahref='https://github.com/facebook/fixed-data-table'>fixed-data-table</a>.
26
26
Luckily, React DnD is designed to work great with any virtual React data list components because it doesn't keep any state in the DOM.
0 commit comments