Skip to content

Commit 31db882

Browse files
authored
Fixing mini-typo: Update scaling-performance.mdx
update line 26 [dpr, set] to [dpr, setDpr]
1 parent 6b1029f commit 31db882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/advanced/scaling-performance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ You can also use the onChange callback to get notified when the average changes
213213
```jsx
214214
import round from 'lodash/round'
215215

216-
const [dpr, set] = useState(1)
216+
const [dpr, setDpr] = useState(1)
217217
return (
218218
<Canvas dpr={dpr}>
219219
<PerformanceMonitor onChange={({ factor }) => setDpr(round(0.5 + 1.5 * factor, 1))}>

0 commit comments

Comments
 (0)