MCPcopy Create free account
hub / github.com/code100x/daily-code / fetchMCQs

Function fetchMCQs

apps/web/components/admin/AdminMCQ.tsx:15–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 const [Problems, setProblems] = useState<AdminAddMCQProps[]>([]);
14 useEffect(() => {
15 async function fetchMCQs() {
16 const Problems = await getAllMCQs();
17 setProblems(Problems);
18 }
19 fetchMCQs();
20 }, []);
21 return (

Callers 1

AdminMCQFunction · 0.70

Calls 1

getAllMCQsFunction · 0.90

Tested by

no test coverage detected