Create a single-page application using React Hooks that fetches the data from the following endpoint:
https://jsonplaceholder.typicode.com/posts
This endpoint returns a list of blog posts in JSON format. You need to display these blog posts in a visually appealing way on the page.
Requirements
- Create a React app in your local.
- Use React Hooks for all state management and component logic.
- Fetch the data from the above endpoint when the component is first rendered.
- Display the title, body, and author of each blog post.
queries.forEach( async (q) => console.log( await dbQuery(q)) )