API Data Fetching Component
API 数据获取组件
Implement a frontend component that fetches data from an API using a specified JavaScript framework.
实现一个前端组件,使用指定的JavaScript框架从API获取数据。
Prompt
Show me how to wire this front-end component to fetch data from an API. Assume I'm building this in (React/Vue/etc.).