function handleFormSave(event) {
        event.preventDefault();
        console.log(book)
        API.saveBook({
            title: formObject.title,
            authors: formObject.authors,
            desription: formObject.description,
            image: formObject.image,
            link: formObject.link
        })
            .then(res => db.googlebooks)
            .catch(err => console.log(err));

    }
// When the form is submitted, use the API.saveBook method to save the book data
When the form is submitted, use the API.saveBook method to save the book data
When the form is submitted use the API . saveBook method to save the book data
function handleFormSave(event) {
        event.preventDefault();
        console.log(book)
        API.saveBook({
            title: formObject.title,
            authors: formObject.authors,
            desription: formObject.description,
            image: formObject.image,
            link: formObject.link
        })
            .then(res => db.googlebooks)
            .catch(err => console.log(err));
    }
function handleFormSave ( event ) { event . preventDefault ( ) ; console . log ( book ) API . saveBook ( { title : formObject . title , authors : formObject . authors , desription : formObject . description , image : formObject . image , link : formObject . link } ) . then ( res => db . googlebooks ) . catch ( err => console . log ( err ) ) ; }
When the form is submitted, use the API.saveBook method to save the book data
When the form is submitted use the API . saveBook method to save the book data