diff --git a/docs/advanced/scaling-performance.mdx b/docs/advanced/scaling-performance.mdx index 9bc1d32331..435a8ac08f 100644 --- a/docs/advanced/scaling-performance.mdx +++ b/docs/advanced/scaling-performance.mdx @@ -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 ( setDpr(round(0.5 + 1.5 * factor, 1))}>