In this video, we will learn about how we can create elements usinginnerHTML and document.createElement and then how we can append content to the newly created elements to the DOM. We will also see why innerHTML is not always a good way to replace content on the fly because of unnecessary re-renders and we will see why we should use the document.createElement and how elements created using this method helps in bringing interactivity and binding listeners on it. The code for the video can be found on GitHub
----------------------------------------
🐱💻 🐱💻 Course Links:
Complete Code - https://github.com/The-Nerdy-Dev
Visual Studio Code - https://code.visualstudio.com
Git - https://git-scm.com/downloads
-~-~~-~~~-~~-~-
Please watch: "Demystifying JavaScript Tutorials For Beginners(2020)-#39-this keyword,implicit and explicit binding"
https://www.youtube.com/watch?v=O5aShSPaMbE
-~-~~-~~~-~~-~-
Download
0 formats
No download links available.
Demystifying JavaScript Tutorials For Beginners(2020)-#23- Creating and Inserting Elements | NatokHD