const CourseList: React.FC<{ onSelect: (id: string) => void }> = ({ onSelect, }) => { // 運用useQuery鉤子函數(shù),傳入查詢語句,獲取查詢結(jié)果 const { loading, error, data } = useQuery(COURSES_QUERY); // 假如查詢正在加載中,返回一個提示信息 if (loading) return Loading... ; // 假...
www.dbjr.com.cn/javascript/2956988...htm 2025-6-4