Skip to content

Latest commit

 

History

History
100 lines (85 loc) · 10.7 KB

README.md

File metadata and controls

100 lines (85 loc) · 10.7 KB

escode

ESCode implements the ES Components specification to allow you to define special properties on a hierarchy of reactive DOM objects.

The escode package contains the functionality necessary to define [ES Components].

Relatedly, the core is a lightweight package that contains the core functionality of ESCode without DOM features.

Usage

import { create } from 'escode';

const button = {
    __element: 'button',
    __attributes: {
        onclick: function (input) { console.log(this) }
    }
}

const component = create(button, {__parent: document.body})
component.__element.click()

Documentation

See https://github.com/brainsatplay/escode

Acknowledgments

Brains@Play is managed by Garrett Flynn and Joshua Brewster, who use contract work and community contributions through Open Collective to support themselves.

Backers

Support us with a monthly donation and help us continue our activities!

Sponsors

Become a sponsor and get your logo here with a link to your site!