this example demonstrates making HTML elements as Javascript Components. components helps you to code once and use it anytime and anywhere you want as a HTMl tag!
this type of script is a kind of modern javascript and it is supposed to be defined as module in script tag.
in this example i made my header and footer as a javascript component.
I can use them without copying them in any html page just with a signle tag!
-
Notifications
You must be signed in to change notification settings - Fork 0
Im-unk/javascript-components-example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
javascript components are pretty useful for coding once for the fixed HTML elements in different pages that you create!⚙