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
  4c224de2_ae69_2021_793f_e1dc1488e1a6["useIsDarkMode()"]
  87ad354e_d994_3fef_cd99_4b69dada6eb6["ComponentUsingHooksIndirectly.js"]
  4c224de2_ae69_2021_793f_e1dc1488e1a6 -->|defined in| 87ad354e_d994_3fef_cd99_4b69dada6eb6
  f1ea5c48_42f0_d5cb_e62d_76f3c706b790["Component()"]
  f1ea5c48_42f0_d5cb_e62d_76f3c706b790 -->|calls| 4c224de2_ae69_2021_793f_e1dc1488e1a6
  style 4c224de2_ae69_2021_793f_e1dc1488e1a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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