Added backgroundImage example to "inline styles" cookbook entry

This commit is contained in:
Connor McSheffrey
2013-10-29 10:14:20 -07:00
parent a4d7f3f907
commit da722b92c0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ In React, inline styles are not specified as a string, but as an object whose ke
var divStyle = {
color: 'white',
backgroundColor: 'lightblue',
backgroundImage: 'url(' + imgUrl + ')',
WebkitTransition: 'all' // note the capital 'W' here
};
+1 -1
View File
@@ -16,7 +16,7 @@ Instead of writing a string, create an object whose key is the camelCased versio
var divStyle = {
color: 'white',
backgroundColor: 'lightblue',
backgroundImage: 'url(' + imgUrl + ')',
WebkitTransition: 'all' // note the capital 'W' here
};