Home / Function/ useIsDarkMode() — react Function Reference

useIsDarkMode() — react Function Reference

Architecture documentation for the useIsDarkMode() function in ComponentUsingHooksIndirectly.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ed11b37e_d9aa_bcb2_80c1_4aa9dce3a43b["useIsDarkMode()"]
  f9d44c43_8787_c9f6_ab88_1f241d590eb5["ComponentUsingHooksIndirectly.js"]
  ed11b37e_d9aa_bcb2_80c1_4aa9dce3a43b -->|defined in| f9d44c43_8787_c9f6_ab88_1f241d590eb5
  b2ef6853_d774_a0d6_c37d_f65393d69b51["Component()"]
  b2ef6853_d774_a0d6_c37d_f65393d69b51 -->|calls| ed11b37e_d9aa_bcb2_80c1_4aa9dce3a43b
  style ed11b37e_d9aa_bcb2_80c1_4aa9dce3a43b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/inline/index-map/ComponentUsingHooksIndirectly.js lines 49–55

function useIsDarkMode() {
  const darkModeState = (0, _react.useState)(false);
  const [isDarkMode] = darkModeState;
  (0, _react.useEffect)(function useEffectCreate() {// Here is where we may listen to a "theme" event...
  }, []);
  return [isDarkMode, () => {}];
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does useIsDarkMode() do?
useIsDarkMode() is a function in the react codebase, defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/inline/index-map/ComponentUsingHooksIndirectly.js.
Where is useIsDarkMode() defined?
useIsDarkMode() is defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/inline/index-map/ComponentUsingHooksIndirectly.js at line 49.
What calls useIsDarkMode()?
useIsDarkMode() is called by 1 function(s): Component.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free