componentWillReceiveProps (nextProps) {  
    this.setState({
        id: nextProps.postDetails.id,
        title: nextProps.postDetails.title,
        body: nextProps.postDetails.body,
        category: nextProps.postDetails.category,     
    })
  }
/**
   * @description Invoke whenever the component is about to receive brand new props
   * @param {Object} nextProps
   */
@description Invoke whenever the component is about to receive brand new props
@param {Object} nextProps
@description Invoke whenever the component is about to receive brand new props @param { Object } nextProps
componentWillReceiveProps (nextProps) {  
    this.setState({
        id: nextProps.postDetails.id,
        title: nextProps.postDetails.title,
        body: nextProps.postDetails.body,
        category: nextProps.postDetails.category,     
    })
  }
componentWillReceiveProps ( nextProps ) { this . setState ( { id : nextProps . postDetails . id , title : nextProps . postDetails . title , body : nextProps . postDetails . body , category : nextProps . postDetails . category , } ) }
@description Invoke whenever the component is about to receive brand new props
 @param {Object} nextProps
@description Invoke whenever the component is about to receive brand new props @param { Object } nextProps