Last active
July 23, 2017 13:14
-
-
Save wojciech-bilicki/e00e361f7d49bf360b7a355b3aa4b792 to your computer and use it in GitHub Desktop.
Index.html after adding first scripts
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Marvel</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="node_modules/react/dist/react.js"></script> | |
<script src="node_modules/react-dom/dist/react-dom.js"></script> | |
<script> | |
var topBar = function () { | |
return React.createElement('div', { style: { color: 'red' } }, | |
React.createElement('hi', null, "Marvel Superheroes") | |
); | |
}; | |
ReactDOM.render(React.createElement(topBar), document.getElementById('app')); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment