componentWillReceiveProps(properties) {
    // Makes sure we have inputValue available when triggering a resize.
    const newState = {
      inputValue: this.state.inputValue,
    };
    if (has(properties, 'valueLink')) {
      newState.inputValue = properties.valueLink.value;
    } else if (has(properties, 'value')) {
      newState.inputValue = properties.value;
    }

    this.textareaProps = sanitizeChildProps(properties);
    removeStyle(this._styleId);
    updatePseudoClassStyle(this._styleId, properties);
    this.setState(newState, () => this._triggerResize(newState.inputValue));
  }
Update the properties passed to the textarea and resize as with the new
properties the height might have changed.