client/src/pages/Search.js
// call google books api with 'search' as parameter
call google books api with 'search' as parameter
call google books api with ' search ' as parameter
async function handleFormSubmit(event) {
    event.preventDefault();
    const results = await API.getBooks(search); 
    console.log(results.data.items);
    setResults(results.data.items);
  }
async function handleFormSubmit ( event ) { event . preventDefault ( ) ; const results = await API . getBooks ( search ) ; console . log ( results . data . items ) ; setResults ( results . data . items ) ; }
call google books api with 'search' as parameter
call google books api with ' search ' as parameter
// or change to .then