resources/assets/js/components/Note.js
/**
  **fetching a note and called whenever there is a new note or initialization
  **/
fetching a note and called whenever there is a new note or initialization
fetching a note and called whenever there is a new note or initialization
fetchNotes(){
    var self = this
    axios.get("/api/note/"+this.props.id).then(
      function(response){
        return response
      }).then(
      function(response){
        self.setState({
          notes:response.data.data
        })
      }
    )
  }
fetchNotes ( ) { var self = this axios . get ( "/api/note/" + this . props . id ) . then ( function ( response ) { return response } ) . then ( function ( response ) { self . setState ( { notes : response . data . data } ) } ) }
fetching a note and called whenever there is a new note or initialization
fetching a note and called whenever there is a new note or initialization