Skip to content

Commit

Permalink
docs: typo in scaling-performance.mdx (#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielmerinos committed Aug 10, 2024
1 parent 4ec3cb0 commit c743f03
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 @@ -227,7 +227,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 c743f03

Please sign in to comment.