MCPcopy
hub / github.com/BetaSu/big-react / useState

Function useState

packages/react/index.ts:15–18  ·  view source on GitHub ↗
(initialState)

Source from the content-addressed store, hash-verified

13// React
14
15export const useState: Dispatcher['useState'] = (initialState) => {
16 const dispatcher = resolveDispatcher();
17 return dispatcher.useState(initialState);
18};
19
20export const useEffect: Dispatcher['useEffect'] = (create, deps) => {
21 const dispatcher = resolveDispatcher();

Callers 11

AppFunction · 0.90
CpnFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90

Calls 1

resolveDispatcherFunction · 0.90

Tested by

no test coverage detected