Skip to content

Instantly share code, notes, and snippets.

@camilomontoyau
Created November 11, 2018 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camilomontoyau/4586986b7f3424f9da55410641848682 to your computer and use it in GitHub Desktop.
Save camilomontoyau/4586986b7f3424f9da55410641848682 to your computer and use it in GitHub Desktop.
react es js
<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