Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Last active July 23, 2017 13:14
Show Gist options
  • Save wojciech-bilicki/e00e361f7d49bf360b7a355b3aa4b792 to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/e00e361f7d49bf360b7a355b3aa4b792 to your computer and use it in GitHub Desktop.
Index.html after adding first scripts
<!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