MCPcopy
hub / github.com/preactjs/preact / init

Function init

hooks/test/browser/useReducer.test.jsx:94–96  ·  view source on GitHub ↗
(initialCount)

Source from the content-addressed store, hash-verified

92 let _dispatch;
93
94 function init(initialCount) {
95 return { count: initialCount };
96 }
97
98 function reducer(state, action) {
99 switch (action.type) {

Callers 1

useReducerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…