Skip to content

Commit c743f03

Browse files
authored
docs: typo in scaling-performance.mdx (#3275)
1 parent 4ec3cb0 commit c743f03

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
@@ -227,7 +227,7 @@ You can also use the onChange callback to get notified when the average changes
227227
```jsx
228228
import round from 'lodash/round'
229229

230-
const [dpr, set] = useState(1)
230+
const [dpr, setDpr] = useState(1)
231231
return (
232232
<Canvas dpr={dpr}>
233233
<PerformanceMonitor onChange={({ factor }) => setDpr(round(0.5 + 1.5 * factor, 1))}>

0 commit comments

Comments
 (0)