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

Function useState

docs/external/js/react.development.js:1581–1584  ·  view source on GitHub ↗
(initialState)

Source from the content-addressed store, hash-verified

1579 return dispatcher.useContext(Context, unstable_observedBits);
1580 }
1581 function useState(initialState) {
1582 var dispatcher = resolveDispatcher();
1583 return dispatcher.useState(initialState);
1584 }
1585 function useReducer(reducer, initialArg, init) {
1586 var dispatcher = resolveDispatcher();
1587 return dispatcher.useReducer(reducer, initialArg, init);

Callers

nothing calls this directly

Calls 1

resolveDispatcherFunction · 0.85

Tested by

no test coverage detected