Reincharts
    Preparing search index...

    Class PureComponent<T, S, SS>

    Type Parameters

    • T
    • S = {}
    • SS = any

    Hierarchy

    • Component<T, S, SS>
      • PureComponent
    Index

    Constructors

    • Type Parameters

      • T
      • S = {}
      • SS = any

      Parameters

      • props: T

      Returns PureComponent<T, S, SS>

    • Type Parameters

      • T
      • S = {}
      • SS = any

      Parameters

      • props: T
      • context: any

        value of the parent Context specified in contextType.

      Returns PureComponent<T, S, SS>

    Methods

    • Called to determine whether the change in props and state should trigger a re-render.

      Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

      If false is returned, Component.render, componentWillUpdate and componentDidUpdate will not be called.

      Parameters

      • nextProps: T
      • nextState: S
      • nextContext: SS

      Returns boolean