Created
February 28, 2017 05:06
-
-
Save almapase/64f10e128627a89e99e5ade9ee67909b to your computer and use it in GitHub Desktop.
App with React // source https://jsbin.com/giqiho
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>App with React</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js" /> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js" /> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.17.0/babel.min.js"/> | |
<script type="text/babel" src="app.js"/> | |
<script id="jsbin-javascript"> | |
class App extends React.Component{ | |
render(){ | |
return (React.createElement("h1", null, "App with React")) | |
} | |
} | |
ReactDOM.render(React.createElement(App, null), document.getElementById('app')); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">class App extends React.Component{ | |
render(){ | |
return (<h1>App with React</h1>) | |
} | |
} | |
ReactDOM.render(<App />, document.getElementById('app'));</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
class App extends React.Component{ | |
render(){ | |
return (React.createElement("h1", null, "App with React")) | |
} | |
} | |
ReactDOM.render(React.createElement(App, null), document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment