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

Function MyRadio

advanced_tutorial/src/cases/case1.tsx:6–6  ·  view source on GitHub ↗
(props: RadioProps)

Source from the content-addressed store, hash-verified

4function useRadio() {
5 const [value, setValue] = useState<boolean>(false);
6 const MyRadio = (props: RadioProps) => <Radio checked={value} onClick={toggle} {...props}></Radio>
7 const toggle = () => {
8 setValue(value => !value);
9 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected