componentWillReceiveProps(nextProps) {
    if (nextProps.selectedTime !== this.props.selectedTime) {
      this.setState({time: this.getLuxonDateTime(nextProps.selectedTime)})
    }
  }
/**
   * Update state when props change. In particular, if we receive a different
   * `selectedTime` prop from up the hierarchy, set state.time to a new Luxon
   * DateTime appropriately (in order to force the tickers to the new time)
   * @param {*} nextProps the nextProps
   * @return {void}
   */
Update state when props change. In particular, if we receive a different
`selectedTime` prop from up the hierarchy, set state.time to a new Luxon
DateTime appropriately (in order to force the tickers to the new time)
@param {*} nextProps the nextProps
@return {void}
Update state when props change . In particular if we receive a different ` selectedTime ` prop from up the hierarchy set state . time to a new Luxon DateTime appropriately ( in order to force the tickers to the new time ) @param { * } nextProps the nextProps @return { void }
componentWillReceiveProps(nextProps) {
    if (nextProps.selectedTime !== this.props.selectedTime) {
      this.setState({time: this.getLuxonDateTime(nextProps.selectedTime)})
    }
  }
componentWillReceiveProps ( nextProps ) { if ( nextProps . selectedTime !== this . props . selectedTime ) { this . setState ( { time : this . getLuxonDateTime ( nextProps . selectedTime ) } ) } }
Update state when props change.
Update state when props change .