We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec3cb0 commit c743f03Copy full SHA for c743f03
docs/advanced/scaling-performance.mdx
@@ -227,7 +227,7 @@ You can also use the onChange callback to get notified when the average changes
227
```jsx
228
import round from 'lodash/round'
229
230
-const [dpr, set] = useState(1)
+const [dpr, setDpr] = useState(1)
231
return (
232
<Canvas dpr={dpr}>
233
<PerformanceMonitor onChange={({ factor }) => setDpr(round(0.5 + 1.5 * factor, 1))}>
0 commit comments