Vanilla JS Custom Element Examples
About
This project demonstrates several different ways to create custom elements in vanilla javascript.
Dependencies
The latest version of Chrome.
Demo
Class Based Custom Element
Reflect (Class-less) Based Custom Element
Register Element (Depricated)
Notes
Class based custom elements are currently the suggested way to create new custom elements. Register element is the old way of creating custom elements and should not be used. Reflect is an interesting way of creating custom elements without using classes.
License
Created by coderfin. This code is licensed under the MIT style license found as part of this project.
Changelog
- Initial Release