MCPcopy Index your code
hub / github.com/react/react / debug

Function debug

packages/react-devtools-shared/src/devtools/store.js:61–70  ·  view source on GitHub ↗
(methodName: string, ...args: Array<string>)

Source from the content-addressed store, hash-verified

59import type {DevToolsHookSettings} from '../backend/types';
60
61const debug = (methodName: string, ...args: Array<string>) => {
62 if (__DEBUG__) {
63 console.log(
64 `%cStore %c${methodName}`,
65 'color: green; font-weight: bold;',
66 'font-weight: bold;',
67 ...args,
68 );
69 }
70};
71
72const LOCAL_STORAGE_COLLAPSE_ROOTS_BY_DEFAULT_KEY =
73 'React::DevTools::collapseNodesByDefault';

Callers 2

constructorMethod · 0.70
StoreClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected