Design a simple frontend application that interacts with backend endpoints. The frontend should include a form to submit a new book (with details like title, author, etc.), call the backend GET /books endpoint, and display the list of all books retrieved from the backend. The solution should demonstrate handling form input, API requests, and rendering dynamic data on the UI.
Create a backend REST API with an endpoint GET /books that returns a JSON list of books. Each book should contain fields such as id, title, and author. The endpoint should handle requests efficiently and return a properly structured JSON response.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?