Skip to content

sahilrajput03/learn-web-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Learn Web Components

🚀🚀 Deployed at https://sahilrajput03.github.io/learn-web-components (via Github Pages)

  • MDN Docs - Web Components: Click here
  • MDN Examples: Click here
  • Lit (from Google) - Library used in this project
    • ❤️ Lit Library for Web Components from Google: Click here
    • Should i use any library for using web components? TLDR; Use Lit 🔥 (source)
  • Download frontendmasters.com Courses: Click here

Q. Can a compoent name be one word like ?

No, a custom element name (web component) cannot be a single word like . According to the HTML specification, custom element names must contain a hyphen (e.g., , ). This prevents conflicts with existing and future standard HTML elements.

Q. Can <my-counter></my-counter> be written as <my-counter /> ?

No.

Releases

No releases published

Packages

 
 
 

Contributors