PureComponent

abstract external class PureComponent<P : Props, S : State>(props: P = definedExternally) : Component<P, S> (source)

Constructors

Link copied to clipboard
constructor(props: P = definedExternally)

Properties

Link copied to clipboard
val props: P
Link copied to clipboard
var state: S

Functions

Link copied to clipboard
open fun componentDidCatch(error: Throwable, info: ErrorInfo)
Link copied to clipboard
Link copied to clipboard
open fun componentDidUpdate(prevProps: P, prevState: S, snapshot: Any)
Link copied to clipboard
Link copied to clipboard
open fun componentWillReceiveProps(nextProps: P)
Link copied to clipboard
Link copied to clipboard
open fun componentWillUpdate(nextProps: P, nextState: S)
Link copied to clipboard
fun forceUpdate(callback: () -> Unit = definedExternally)
Link copied to clipboard
open fun getSnapshotBeforeUpdate(prevProps: P, prevState: S): Any
Link copied to clipboard
abstract fun render(): ReactNode?
Link copied to clipboard
fun setState(partialState: S, callback: () -> Unit = definedExternally)
fun setState(transformState: (S) -> S, callback: () -> Unit = definedExternally)
Link copied to clipboard
override fun shouldComponentUpdate(nextProps: P, nextState: S): Boolean
Link copied to clipboard
Link copied to clipboard
open fun UNSAFE_componentWillReceiveProps(nextProps: P)
Link copied to clipboard
open fun UNSAFE_componentWillUpdate(nextProps: P, nextState: S)