We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bebd7 commit 1f95d79Copy full SHA for 1f95d79
docs/rules/no-non-optimized-style-attributes.md
@@ -36,7 +36,7 @@ compiled:
36
```js
37
div.style.setProperty("font-size", "12px") // font-size style is not updated once it is initially set.
38
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.
+div.style.setProperty("transform", `translate(${x}px, ${y}px)`) // transform style is updated only when x, or y variables are updated.
40
```
41
42
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