Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>本教程 React 实例</title> <script src="http://static.w3big.com/assets/react/react-0.14.7/build/react.min.js"></script> <script src="http://static.w3big.com/assets/react/react-0.14.7/build/react-dom.min.js"></script> <script src="http://static.w3big.com/assets/react/browser.min.js"></script> </head> <body> <div id="example"></div> <script type="text/babel"> var myStyle = { fontSize: 100, color: '#FF0000' }; ReactDOM.render( <h1 style = {myStyle}>本教程</h1>, document.getElementById('example') ); </script> </body> </html>