-
Notifications
You must be signed in to change notification settings - Fork 16
Component properties
Filatov Dmitry edited this page Feb 10, 2017
·
3 revisions
All of instance's properties are readonly and mustn't be modified directly.
Object attrs
Represents the current attrs of the component's instance.
Any children
Represents the current children of the component's instance.
Object state
Represents the current state of the component's instance. State can be modified via setState
method.
Object context
Represents the current context of the component's instance.
Object defaultAttrs
Represents the default attrs of the component. They should be specified during component's class declaration.
class Button extends Component {
...
}
Button.defaultAttrs = {
text : 'click me'
};