Skip to content

Latest commit

 

History

History
108 lines (69 loc) · 2.46 KB

File metadata and controls

108 lines (69 loc) · 2.46 KB

API

h

Type: (tag, data, children): vnode

app

Type: (props)

state

Type: any

view

Type: (state, actions): vnode

actions

[namespace.]foo

Type: (state, actions, data, emit)

  • data: any

events

loaded

Type: (state, actions, _, emit) | Array<events>

Fired after the view is mounted on the DOM.

action

Type: (state, actions, data, emit): data | Array<action>

  • data
    • name: string
    • data: any

Fired before an action is triggered.

update

Type: (state, actions, data, emit): data | Array<update>

  • data: the updated fragment of the state.

Fired before the state is updated.

render

Type: (state, actions, view, emit): view | Array<render>

Fired before the view is rendered.

mixins

Type: Array<Mixin>

Mixin

Type: (props): props

root

Type: Element = document.body

emit

Type: (event, data): data

  • event: string
  • data: any