setProps (newProps) {
    const oldProps = this.props
    const oldState = this.state
    const needRerender = this.shouldRerender(newProps, this.state)
    this._setProps(newProps)
    if (needRerender) {
      this._rerender(oldProps, oldState)
    } else {
      this.didUpdate(oldProps, oldState)
    }
  }
Sets the properties of this component, potentially leading to a rerender.

    @param {object} an object with properties