MCPcopy
hub / github.com/facebook/react / debug

Function debug

packages/react-devtools-core/src/backend.js:52–61  ·  view source on GitHub ↗
(methodName: string, ...args: Array<mixed>)

Source from the content-addressed store, hash-verified

50 getDefaultComponentFilters();
51
52function debug(methodName: string, ...args: Array<mixed>) {
53 if (__DEBUG__) {
54 console.log(
55 `%c[core/backend] %c${methodName}`,
56 'color: teal; font-weight: bold;',
57 'font-weight: bold;',
58 ...args,
59 );
60 }
61}
62
63export function initialize(
64 maybeSettingsOrSettingsPromise?:

Callers 4

sendFunction · 0.70
handleCloseFunction · 0.70
handleFailedFunction · 0.70
handleMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected