Skip to content

Instantly share code, notes, and snippets.

@almapase
Created February 28, 2017 05:06
Show Gist options
  • Save almapase/64f10e128627a89e99e5ade9ee67909b to your computer and use it in GitHub Desktop.
Save almapase/64f10e128627a89e99e5ade9ee67909b to your computer and use it in GitHub Desktop.
App with React // source https://jsbin.com/giqiho
<!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>
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