client/src/pages/Search.js
// Loads all books and sets them to books
Loads all books and sets them to books
Loads all books and sets them to books
function loadBooks() {
    API.googleBooks()
      .then(res => {
        console.log(res)
        setBooks(res.data.items)
      })
      .catch(err => console.log(err));
  }
function loadBooks ( ) { API . googleBooks ( ) . then ( res => { console . log ( res ) setBooks ( res . data . items ) } ) . catch ( err => console . log ( err ) ) ; }
Loads all books and sets them to books
Loads all books and sets them to books