Created
November 11, 2018 17:08
-
-
Save camilomontoyau/4586986b7f3424f9da55410641848682 to your computer and use it in GitHub Desktop.
react es 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> | |
<title>un título</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script type="text/javascript"> | |
const div = document.createElement("div"); | |
div.innerText = "hola soy un div"; | |
div.style.color = "blue"; // acá le le pusimos un poco de css-in-js | |
const app = document.getElementById('app'); | |
app.appendChild(div); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment