Skip to content
Filatov Dmitry edited this page May 13, 2016 · 14 revisions

update

void update(
    [Function cb],
    [Object cbCtx]
)

Schedules rerender of a component.

isMounted

Boolean isMounted()

Returns whether a component is mounted to the DOM.

setDomRef

VNode setDomRef(
    String ref,
    VNode node
)

Sets a named reference to the given DOM element.

getDomRef

Node getDomRef(
    String ref
)

Returns the DOM element by the given reference.

setState

void setState(
    Object state
)

Updates the current state. The given state will be merged with the current state.

getState

Object getState()

Returns the current state.

getPrevState

Object getPrevState()

Returns the previous state. It may be used within shouldUpdate lifecycle method to calculate difference with the current state.

getAttrs

Object getAttrs()

Returns the current attributes.

getContext

Object getContext()

Returns the current context.