Last active
November 22, 2017 10:59
-
-
Save joevo2/21a7670c89f196955d920d5b8505b6eb to your computer and use it in GitHub Desktop.
HTML only React.js
This file contains 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="https://unpkg.com/react@16.1.0/umd/react.production.min.js"></script> | |
<script src="https://unpkg.com/react-dom@16.1.0/umd/react-dom.production.min.js"></script> | |
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> | |
<script type="text/babel"> | |
class App extends React.Component { | |
render() { | |
return ( | |
<div> | |
<p>Hi</p> | |
</div> | |
) | |
} | |
} | |
ReactDOM.render( | |
<App />, | |
document.getElementById('app') | |
) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment