MCPcopy Create free account
hub / github.com/Okabe-Rintarou-0/BookStore-Frontend / toggleRadio

Function toggleRadio

advanced_tutorial/src/cases/case1.tsx:24–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22export default function Case1() {
23 const [value, setValue] = useState<boolean>(false);
24 const toggleRadio = () => {
25 setValue(value => !value);
26 }
27 const selectRadio = () => {
28 setValue(true);
29 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected