Browse Source

Tweak wording

main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
b33a587ec5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/reference-dom-elements.md

2
content/docs/reference-dom-elements.md

@ -88,7 +88,7 @@ function ComponentWithTransition() {
Style keys are camelCased in order to be consistent with accessing the properties on DOM nodes from JS (e.g. `node.style.backgroundImage`). Vendor prefixes [other than `ms`](http://www.andismith.com/blog/2012/02/modernizr-prefixed/) should begin with a capital letter. This is why `WebkitTransition` has an uppercase "W".
React will automatically append a "px" suffix to certain inline style properties. In case there is a need to have units other than "px", encase the values as strings with the desired unit. For example:
React will automatically append a "px" suffix to certain numeric inline style properties. If you want to use units other than "px", specify the value as a string with the desired unit. For example:
```js
// This:

Loading…
Cancel
Save