MCPcopy Create free account
hub / github.com/coderarmy-notes/mern-stack-course / handlChange

Function handlChange

04React/Day06/vite-project/src/Clock.jsx:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 const [clocks,setClocks] = useState(["A","B","C"]);
7
8 function handlChange(){
9 setClocks(["D",...clocks]);
10 }
11
12 return (
13 <>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected