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