Great explanation! You are one of a few that creates high quality vanilla.js tutorials. Your channel should have hit the million subs years ago. Keep up the great work!
I am not very familiar with modules but working with modules and components in vanilla JavaScript has one significant advantage, meaning I don't need to learn all those fancy frameworks like React, Vue, etc. It seems to provide sufficient functionality on its own.
They've been out 10 years bro, there used to be a thing called HTML imports until it got deprecated because everybody got on the React bandwagon... It was the same as having a element on your page except it was an import from another HTML file than you would link.import and then run a querySelector() on it (like template or docFrag) select an element cloneNode and inject into the DOM...
*If you prefer to create a search bar without web components* 👇
ua-cam.com/video/f6ocDCkCmhM/v-deo.html
Great explanation! You are one of a few that creates high quality vanilla.js tutorials. Your channel should have hit the million subs years ago.
Keep up the great work!
Appreciate it. Thanks mate!
u reading my mind dom.. really need this at the moment
I recently learned there is a new semantic element now too.
I am not very familiar with modules but working with modules and components in vanilla JavaScript has one significant advantage, meaning I don't need to learn all those fancy frameworks like React, Vue, etc. It seems to provide sufficient functionality on its own.
Yeah, though it certainly does depend. For smaller projects, yes, but for larger projects it may be more beneficial to go for something like React
@@dcode-softwareindeed
Wait, you can create components in vanilla js and import them into your html? 🤨 damn... I really do not know a lot
They've been out 10 years bro, there used to be a thing called HTML imports until it got deprecated because everybody got on the React bandwagon... It was the same as having a element on your page except it was an import from another HTML file than you would link.import and then run a querySelector() on it (like template or docFrag) select an element cloneNode and inject into the DOM...