Browse Source

Removed JS for live edit

main
Connor McSheffrey 11 years ago
parent
commit
7aaa32c9e8
  1. 10
      _js/cookbook/inline-styles.js
  2. 19
      js/cookbook/inline-styles.js

10
_js/cookbook/inline-styles.js

@ -1,10 +0,0 @@
/**
* @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')
);

19
js/cookbook/inline-styles.js

@ -1,19 +0,0 @@
/**
* @jsx React.DOM
*/
var INLINE_STYLES_COMPONENT = "
/** @jsx React.DOM */
var divStyle = {
color: 'white',
backgroundImage: 'url(' + imgUrl + ')',
WebkitTransition: 'all' // note the capital 'W' here
};
React.renderComponent(<div style={divStyle}>Hello World!</div>, mountNode);
";
React.renderComponent(
ReactPlayground( {codeText:INLINE_STYLES_COMPONENT} ),
document.getElementById("inlineStylesExample")
);
Loading…
Cancel
Save