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

Function useDebugValue

packages/react/src/ReactHooks.js:160–168  ·  view source on GitHub ↗
(
  value: T,
  formatterFn: ?(value: T) => mixed,
)

Source from the content-addressed store, hash-verified

158}
159
160export function useDebugValue<T>(
161 value: T,
162 formatterFn: ?(value: T) => mixed,
163): void {
164 if (__DEV__) {
165 const dispatcher = resolveDispatcher();
166 return dispatcher.useDebugValue(value, formatterFn);
167 }
168}
169
170export function useTransition(): [
171 boolean,

Calls 1

resolveDispatcherFunction · 0.70

Tested by

no test coverage detected