Added backgroundImage example to "inline styles" cookbook entry
Connor McSheffrey committed
Oct 1, 2013 at 23:45 UTC
da722b92c0c26a001c73a35d38e43abfea6c8227
2 files changed
+2
-2
docs/cookbook/cb-02-inline-styles tip.md
+1
-1
@@ -12,7 +12,7 @@ In React, inline styles are not specified as a string, but as an object whose ke
12
13
var divStyle = {
14
color: 'white',
15
- backgroundColor: 'lightblue',
15
+ backgroundImage: 'url(' + imgUrl + ')',
16
WebkitTransition: 'all' // note the capital 'W' here
17
};
18
docs/cookbook/cb-02-inline-styles.md
+1
-1
@@ -16,7 +16,7 @@ Instead of writing a string, create an object whose key is the camelCased versio
16
17
var divStyle = {
18
color: 'white',
19
- backgroundColor: 'lightblue',
19
+ backgroundImage: 'url(' + imgUrl + ')',
20
WebkitTransition: 'all' // note the capital 'W' here
21
};
22