pull/1001/head
kyle 3 years ago
parent ce95a24e73
commit d1c6976181

@ -524,20 +524,6 @@ In JSX, you can use `style` like this:
// Renders as: <div style="border: 1px solid #bada55; color: #c0ffee; font-weight: bold"></div>
```
Note that the style module does not remove style attributes if they
are removed as properties from the style object. To remove a style,
you should instead set it to the empty string.
```mjs
h(
"div",
{
style: { position: shouldFollow ? "fixed" : "" },
},
"I, I follow, I follow you"
);
```
#### Custom properties (CSS variables)
CSS custom properties (aka CSS variables) are supported, they must be prefixed

Loading…
Cancel
Save