Skip to content

Instantly share code, notes, and snippets.

@ashwinkumar2438
Last active May 9, 2021 14:14
Show Gist options
  • Save ashwinkumar2438/84262a0652556e896108afd7f4f8ce79 to your computer and use it in GitHub Desktop.
Save ashwinkumar2438/84262a0652556e896108afd7f4f8ce79 to your computer and use it in GitHub Desktop.
//In JS:
let myelem=new MyElement();
document.body.append(myelem);
//In DOM:
//autonomous Custom Element:
let AutonomousComponent= ()=>(<my-element></my-element>);
//customised button Element:
let ButtonComponent=()=>(<button is='custom-button' > Special Button</button>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment