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