Skip to content

Commit 4fe9c85

Browse files
authored
remove wrong reference of window (#7132)
1 parent 7a8e256 commit 4fe9c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/rules/components-and-hooks-must-be-pure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Side effects that are directly visible to the user are not allowed in the render
190190

191191
```js {2}
192192
function ProductDetailPage({ product }) {
193-
document.window.title = product.title; // 🔴 Bad: Changes the DOM
193+
document.title = product.title; // 🔴 Bad: Changes the DOM
194194
}
195195
```
196196

0 commit comments

Comments
 (0)