MCPcopy Create free account
hub / github.com/Klerith/react-hooks / reset

Function reset

src/hooks/useCounter.js:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 const reset = () => {
19 setCounter( initialValue );
20 }
21
22 return {
23 counter,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected