mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Added backgroundImage example to "inline styles" cookbook entry
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user