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
  29278e14_b355_d17d_12ed_8763400dd7cc["useIsDarkMode()"]
  a05b434c_66d6_a930_6a1f_72a3608b0661["ComponentUsingHooksIndirectly.js"]
  29278e14_b355_d17d_12ed_8763400dd7cc -->|defined in| a05b434c_66d6_a930_6a1f_72a3608b0661
  b92989cb_41fa_f378_0c6d_d72039548498["Component()"]
  b92989cb_41fa_f378_0c6d_d72039548498 -->|calls| 29278e14_b355_d17d_12ed_8763400dd7cc
  style 29278e14_b355_d17d_12ed_8763400dd7cc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/no-columns/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__/no-columns/ComponentUsingHooksIndirectly.js.
Where is useIsDarkMode() defined?
useIsDarkMode() is defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/no-columns/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