Home / File/ useTheme.js — react Source File

useTheme.js — react Source File

Architecture documentation for useTheme.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = useTheme;
exports.ThemeContext = void 0;

var _react = require("react");

/**
 * 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.
 *
 * 
 */
const ThemeContext = /*#__PURE__*/(0, _react.createContext)('bright');
exports.ThemeContext = ThemeContext;

function useTheme() {
  const theme = (0, _react.useContext)(ThemeContext);
  (0, _react.useDebugValue)(theme);
  return theme;
}
//# sourceMappingURL=useTheme.js.map?foo=bar&param=some_value

Domain

Subdomains

Functions

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.
Where is useTheme.js in the architecture?
useTheme.js is located at packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/useTheme.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external).

Analyze Your Own Codebase

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

Try Supermodel Free