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

Function handleAddOption

apps/web/components/mcq/EditMCQ.tsx:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 const [isUpdating, setIsUpdating] = useState<boolean>(false);
24
25 function handleAddOption() {
26 setOptions([...options, ...option.split(",")]);
27 setOption("");
28 }
29
30 function handleRemoveOption(option: string) {
31 setOptions(options.filter((o) => o !== option));

Callers 1

EditMCQFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected