-
Notifications
You must be signed in to change notification settings - Fork 1
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 |
Most of documentation comes from Preact authors, for example https://preactjs.com/guide/api-reference.
The externs were created to be used with JavaScript Compiler: https://compiler.page.
© Art Deco™ for Depack 2020 |
---|