You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
455 B
11 lines
455 B
11 years ago
|
/**
|
||
|
* @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')
|
||
|
);
|