MCPcopy Create free account
hub / github.com/microsoft/SandDance / basicStateReducer

Function basicStateReducer

docs/external/js/react-dom.development.js:15146–15149  ·  view source on GitHub ↗
(state, action)

Source from the content-addressed store, hash-verified

15144 }
15145
15146 function basicStateReducer(state, action) {
15147 // $FlowFixMe: Flow doesn't like mixed types
15148 return typeof action === 'function' ? action(state) : action;
15149 }
15150
15151 function mountReducer(reducer, initialArg, init) {
15152 var hook = mountWorkInProgressHook();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected