Connor McSheffrey
11 years ago
7 changed files with 44 additions and 19 deletions
@ -0,0 +1,10 @@ |
|||
/** |
|||
* @jsx React.DOM |
|||
*/ |
|||
|
|||
var INLINE_STYLES_COMPONENT = "\/** @jsx React.DOM *\/\r\n\r\nvar divStyle = {\r\n color: \'white\',\r\n backgroundColor: \'lightblue\',\r\n WebkitTransition: \'all\' \/\/ note the capital \'W\' here\r\n};\r\n\r\nReact.renderComponent(<div style={divStyle}>Hello World!<\/div>, mountNode);"; |
|||
|
|||
React.renderComponent( |
|||
ReactPlayground( {codeText:INLINE_STYLES_COMPONENT} ), |
|||
document.getElementById('inlineStylesExample') |
|||
); |
Loading…
Reference in new issue