1.0.4 • Published 5 years ago

jony v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

npm.io npm.io

Web Component Framework

Example

yarn example or npm run example

import h, { html, Component, State } from 'jony';
import '../app-header/app-header';

@State({
  title: 'App'
})
class App extends Component {
  onClick = (e) => {
    this.state.title += ' (updated)';
  }

  render() {
    const { title } = this.state;

    return html`
      <button onclick=${this.onClick}>change title</button>
      <app-header title="${title}" />
    `;
  }
}

export default h('app-root', App);

API

@State

Powered by Proxy.

Installation

yarn add jony or npm i jony

Dependencies

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago