--- id: inline-styles-tip title: Inline Styles layout: docs permalink: inline-styles.html script: "cookbook/inline-styles.js" --- In React, inline styles are nto specified as a string, but as an object whose key is the camelCased version of the style name, and whose value is the style's value in string: ```html /** @jsx React.DOM */ var divStyle = { color: 'white', backgroundColor: 'lightblue', WebkitTransition: 'all' // note the capital 'W' here }; React.renderComponent(
Hello World!
, mountNode); ``` Style keys are camelCased in order to be consistent with accessing the properties using node.style.___ in DOM. This also explains why WebkitTransition has an uppercase 'W'.