Created
September 25, 2016 09:17
-
-
Save zeakd/a89c60b541d92e12bec728809bd25751 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>like react1</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script> | |
function render(elem, root) { | |
root.appendChild(elem); | |
} | |
var h1 = document.createElement('h1'); | |
h1.className = 'title' | |
h1.innerHTML = 'hello'; | |
render( | |
h1, | |
document.getElementById('root') | |
) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment