Skip to content

Component

Anton edited this page Aug 6, 2019 · 10 revisions

Component is a class that allows to implement advanced rendering operations.

Component: Preact component.

Name Type & Description
_disable
__x
boolean
Turns off stateful re-rendering.
defaultProps !Object
Properties that will be assigned upon construction of the component.
context* !Object
The context.
props* !Object
The properties.
state* !Object
The state.
getDerivedStateFromProps function(!Object, !Object): !Object
The function to compute the state from properties.
setState* function(!Object, function(): void=): void
forceUpdate* function(function(): void=): void
render* function(!Object=, !Object=, !Object=): VNode
componentWillMount* function(): void
componentDidMount* function(): void
componentWillUnmount* function(): void
getChildContext* function(): !Object
componentWillReceiveProps* function(!Object=, !Object=): void
shouldComponentUpdate* function(!Object=, !Object=, !Object=): boolean
componentWillUpdate* function(!Object=, !Object=, !Object=): void
componentDidUpdate* function(!Object=, !Object=, !Object=): void
Clone this wiki locally