Last active
September 26, 2016 09:50
-
-
Save zeakd/0f2e124b10bb46ff7e693436ed8103fa to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>React 2</title> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js'></script> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script> | |
var page = React.createElement('div', | |
{className: 'page'}, | |
React.createElement('h2', | |
{className: 'page-title'}, | |
'Hi'), | |
React.createElement('p', | |
{className: 'page-content'}, | |
'wow')) | |
ReactDOM.render( | |
page, | |
document.getElementById('root') | |
) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment