Open shanks-t opened 2 years ago
Ensure your backend API is set up to handle the PUT
request appropriately and that it saves the data to both the books
and userbooks
tables as needed. Adjust the request body in the addToLibrary
function to match the expected structure in your backend.
Given book data is fetching create a put method in react to store google book data to data base in the books and userbooks tables. there will be a button under each book in the search list to 'add to library'