Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosdensolutions/code
/ reset
Function
reset
videos/long/learn-react-hooks-useImperativeHandle/Counter.tsx:30–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
29
// We want to expose this to the parent
30
const reset = () => {
31
setCount(0);
32
};
33
34
useImperativeHandle(ref, () => ({
35
checkSubscibed: (value) => console.log(value),
Callers
nothing calls this directly
Calls
1
setCount
Function · 0.85
Tested by
no test coverage detected