track-view

0.0.4 • Public • Published

TrackComponent

View for track.

Installation

npm

npm install track-view

Usage

const TrackView = require('track-view');
 
class Hoge extends TrackView {
  render(_yield) {
    this.c;     // Instance of component.
    this.t;     // Wrapper I18n.t.
    this.vm;    // ViewModel.
    this.attrs; // Attributes.
 
    return m('div', [
      m('h1', 'Hello!'),
      yield
    ]);
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i track-view

Weekly Downloads

2

Version

0.0.4

License

ISC

Unpacked Size

4.01 kB

Total Files

7

Last publish

Collaborators

  • alfa-jpn