MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / onClick

Function onClick

transition-test/src/App.tsx:19–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 const [index, set] = useState(0);
18
19 const onClick = () => set(state => (state + 1) % 3);
20
21 const transitions = useTransition(index, {
22 from: { transform: 'translate3d(100%,0,0)' },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected