fillForm(data) {
    this.idInput.value = data.id
    this.titleInput.value = data.title
    this.bodyInput.value = data.body
    
    this.changeFormState('edit')
  }
// fill form with existing post content to edit
fill form with existing post content to edit
fill form with existing post content to edit
fillForm(data) {
    this.idInput.value = data.id
    this.titleInput.value = data.title
    this.bodyInput.value = data.body
    this.changeFormState('edit')
  }
fillForm ( data ) { this . idInput . value = data . id this . titleInput . value = data . title this . bodyInput . value = data . body this . changeFormState ( 'edit' ) }
fill form with existing post content to edit
fill form with existing post content to edit