client/src/pages/Saved/Saved.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.getFavorites()
      .then((res) => setSavedBooks(res.data))
      .catch((err) => console.log(err));
  }
function loadBooks ( ) { API . getFavorites ( ) . then ( ( res ) => setSavedBooks ( res . data ) ) . catch ( ( err ) => console . log ( err ) ) ; }
Loads all books and sets them to books
Loads all books and sets them to books