Last active
August 19, 2017 03:33
-
-
Save antiperfectclub/6f5561305c0d74511b8c7633fc926eb4 to your computer and use it in GitHub Desktop.
React// source https://jsbin.com/muquve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React</title> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css"> | |
| <script src="http://fb.me/react-with-addons-0.14.3.js"></script> | |
| <script src="http://fb.me/react-dom-0.14.3.js"></script> | |
| <style id="jsbin-css"> | |
| body { | |
| margin: 20px; | |
| } | |
| .wrapper { | |
| width: 100%; | |
| text-align: center; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="container"></div> | |
| <script id="jsbin-javascript"> | |
| class RobotBox extends React.Component { | |
| render() { | |
| return React.createElement("div", null, "Hello From React"); | |
| } | |
| } | |
| let target = document.getElementById('container'); | |
| ReactDOM.render( React.createElement(RobotBox, null), target ); | |
| </script> | |
| <script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React</title> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css"> | |
| <script src="//fb.me/react-with-addons-0.14.3.js"><\/script> | |
| <script src="//fb.me/react-dom-0.14.3.js"><\/script> | |
| </head> | |
| <body> | |
| <div id="container"></div> | |
| </body> | |
| </html> | |
| </script> | |
| <script id="jsbin-source-css" type="text/css">body { | |
| margin: 20px; | |
| } | |
| .wrapper { | |
| width: 100%; | |
| text-align: center; | |
| }</script> | |
| <script id="jsbin-source-javascript" type="text/javascript">class Wrapper extends React.Component { | |
| render() { | |
| return <div>Hello From React</div>; | |
| } | |
| } | |
| let target = document.getElementById('container'); | |
| ReactDOM.render( <Wrapper />, target );</script></body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| margin: 20px; | |
| } | |
| .wrapper { | |
| width: 100%; | |
| text-align: center; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RobotBox extends React.Component { | |
| render() { | |
| return React.createElement("div", null, "Hello From React"); | |
| } | |
| } | |
| let target = document.getElementById('container'); | |
| ReactDOM.render( React.createElement(Wrapper, null), target ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment