MCPcopy Create free account
hub / github.com/byte-fe/react-model / useCount

Function useCount

__test__/lane/react.spec.ts:109–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107
108 test('createStore with useState outside FC', async () => {
109 const useCount = () => {
110 const [count, setCount] = useState(1)
111 return { count, setCount }
112 }
113 const { useStore } = createStore(useCount)
114 let renderTimes = 0
115 const { result } = renderHook(() => {

Callers

nothing calls this directly

Calls 1

useModelFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…