diff --git a/docs/cookbook/cb-02-inline-styles tip.md b/docs/cookbook/cb-02-inline-styles tip.md index 8ccc5abbaf..a4a30169ba 100644 --- a/docs/cookbook/cb-02-inline-styles tip.md +++ b/docs/cookbook/cb-02-inline-styles tip.md @@ -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 }; diff --git a/docs/cookbook/cb-02-inline-styles.md b/docs/cookbook/cb-02-inline-styles.md index d88478c460..388620ec45 100644 --- a/docs/cookbook/cb-02-inline-styles.md +++ b/docs/cookbook/cb-02-inline-styles.md @@ -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 };