diff --git a/content/docs/optimizing-performance.md b/content/docs/optimizing-performance.md index 353b08aef62..6862f9b868e 100644 --- a/content/docs/optimizing-performance.md +++ b/content/docs/optimizing-performance.md @@ -233,7 +233,7 @@ could be rewritten using `concat` as: ```javascript function handleClick() { const newWords = words.concat(['marklar']); - setWords(words); + setWords(newWords); } ```