Created
November 11, 2018 17:18
-
-
Save camilomontoyau/868faf48e69e83f3a1b698d45960519d to your computer and use it in GitHub Desktop.
react es js
This file contains hidden or 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" /> | |
| <style> | |
| .letra-color-azul { /* nueva clase css con el color de la letra azul */ | |
| color: blue; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="app"></div> | |
| <script type="text/javascript"> | |
| const div = document.createElement("div"); | |
| div.innerText = "hola soy un div"; | |
| div.className = "letra-color-azul"; //añado la clase css con la letra azul al div | |
| 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