-
Notifications
You must be signed in to change notification settings - Fork 16
Component methods
Filatov Dmitry edited this page May 13, 2016
·
14 revisions
void update(
[Function cb],
[Object cbCtx]
)
Schedules rerender of a component.
Boolean isMounted()
Returns whether a component is mounted to the DOM.
VNode setDomRef(
String ref,
VNode node
)
Sets a named reference to the given DOM element.
Node getDomRef(
String ref
)
Returns the DOM element by the given reference.
void setState(
Object state
)
Updates the current state. The given state will be merged with the current state.
Object getState()
Returns the current state.
Object getPrevState()
Returns the previous state. It may be used within shouldUpdate
lifecycle method to calculate difference with the current state.
Object getAttrs()
Returns the current attributes.
Object getContext()
Returns the current context.