Commit 42b9988
Pepper Pancoast
Fix useEffect syntax error in conditional dragging example
Addresses #224
Fixed incorrect useEffect syntax in the conditional dragging documentation.
Changed:
useEffect({
To:
useEffect(() => {
useEffect expects a callback function as its first argument, not an object.1 parent 26ded57 commit 42b9988
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments