From da722b92c0c26a001c73a35d38e43abfea6c8227 Mon Sep 17 00:00:00 2001 From: Connor McSheffrey Date: Tue, 1 Oct 2013 23:45:11 -0700 Subject: [PATCH] Added backgroundImage example to "inline styles" cookbook entry --- docs/cookbook/cb-02-inline-styles tip.md | 2 +- docs/cookbook/cb-02-inline-styles.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 };