Mention that style module does not remove attributes #21

pull/22/merge
paldepind 10 years ago
parent 73f0c05a82
commit 5471fd552c

@ -239,6 +239,16 @@ h('span', {
}, 'Say my name, and every colour illuminates');
```
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.
```javascript
h('div', {
style: {position: shouldFollow ? 'fixed' : ''}
}, 'I, I follow, I follow you');
```
#### Delayed properties
You can specify properties as being delayed. Whenever these properties change

Loading…
Cancel
Save