useTheme.js — react Source File
Architecture documentation for useTheme.js, a javascript file in the react codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR af5d485e_5298_1923_ecc7_1b8dc80e05d7["useTheme.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] af5d485e_5298_1923_ecc7_1b8dc80e05d7 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 450dceca_feff_a9bb_237a_c51894db7d4e["ComponentWithExternalCustomHooks.js"] 450dceca_feff_a9bb_237a_c51894db7d4e --> af5d485e_5298_1923_ecc7_1b8dc80e05d7 style af5d485e_5298_1923_ecc7_1b8dc80e05d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {createContext, useContext, useDebugValue} from 'react';
export const ThemeContext = createContext('bright');
export default function useTheme() {
const theme = useContext(ThemeContext);
useDebugValue(theme);
return theme;
}
Domain
Subdomains
Functions
Dependencies
- react
Imported By
Source
Frequently Asked Questions
What does useTheme.js do?
useTheme.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in useTheme.js?
useTheme.js defines 1 function(s): useTheme.
What does useTheme.js depend on?
useTheme.js imports 1 module(s): react.
What files import useTheme.js?
useTheme.js is imported by 1 file(s): ComponentWithExternalCustomHooks.js.
Where is useTheme.js in the architecture?
useTheme.js is located at packages/react-devtools-shared/src/hooks/__tests__/__source__/useTheme.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/hooks/__tests__/__source__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free