tabris-component
Low-level simple component (declarative rendering) for Tabris.js
Features
- Declarative syntax
- Easier to use
- A lot of
Lifecycle
methods shouldComponentUpdate
compatible- would be best who familiar with
JSX
andReact
,Preact
,Inferno
, etc...
Implemented feature
- Events
- Childrens
- Components
- Function components
- Uses literal object, instead of another widget (huge boost performance)
To-Do
- Immutable data (this may reduce performance)
key
attribute- Linked state (rare-case, anyway good...)
Usage
/* jsx h */ { superprops thisstate = click: 0 this { this } } { thistimer = thiscomposite } { return <Composite left=0 top=0 width=300 height=500 ref= { thiscomposite = composite } ><TextView on-tap=this_onClick text=`Hello ` font='24px'/></Composite> } let comp = left: 0 top: 0 width: 300 height: 500comp
License
MIT