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

Function debug

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

Source from the content-addressed store, hash-verified

83 console.error('[React DevTools]', ...args);
84
85function debug(methodName: string, ...args: Array<mixed>) {
86 if (__DEBUG__) {
87 console.log(
88 `%c[core/standalone] %c${methodName}`,
89 'color: teal; font-weight: bold;',
90 'font-weight: bold;',
91 ...args,
92 );
93 }
94}
95
96function safeUnmount() {
97 flushSync(() => {

Callers 1

initializeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected