Skip to content

Commit

Permalink
Fixing mini-typo: Update scaling-performance.mdx
Browse files Browse the repository at this point in the history
update line 26 [dpr, set]  to [dpr, setDpr]
  • Loading branch information
arielmerinos authored May 30, 2024
1 parent 6b1029f commit 31db882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/scaling-performance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ You can also use the onChange callback to get notified when the average changes
```jsx
import round from 'lodash/round'

const [dpr, set] = useState(1)
const [dpr, setDpr] = useState(1)
return (
<Canvas dpr={dpr}>
<PerformanceMonitor onChange={({ factor }) => setDpr(round(0.5 + 1.5 * factor, 1))}>
Expand Down

0 comments on commit 31db882

Please sign in to comment.