coderfin / custom-element

This project demonstrates several different ways to create custom elements in vanilla javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This project demonstrates several different ways to create custom elements in vanilla javascript.

License:MIT License


Languages

Language:JavaScript 83.4%Language:HTML 11.4%Language:CSS 5.2%