Skip to content

Commit 1f95d79

Browse files
authored
Update no-non-optimized-style-attributes.md
1 parent 83bebd7 commit 1f95d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-non-optimized-style-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ compiled:
3636
```js
3737
div.style.setProperty("font-size", "12px") // font-size style is not updated once it is initially set.
3838
div.style.setProperty("color", color) // color style is updated only when color variable is updated.
39-
div.style.setProperty("transform", `translate(${x}px, ${y}px)`) // transform style is updated only when x, or y variables is updated.
39+
div.style.setProperty("transform", `translate(${x}px, ${y}px)`) // transform style is updated only when x, or y variables are updated.
4040
```
4141

4242
However, if the optimization fails, it will be re-rendered triggered by the update of all variables described in the style attribute.

0 commit comments

Comments
 (0)