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

Function handleAddOption

apps/web/components/admin/AdminAddMCQ.tsx:28–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 }, [mcqs, isUpdate]);
27
28 function handleAddOption() {
29 setOptions([...options, ...option.split(",")]);
30 setoption("");
31 }
32 function handleRemoveOption(option: string) {
33 setOptions(options.filter((o) => o !== option));
34 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected