ReactFizzClassComponent.js — react Source File
Architecture documentation for ReactFizzClassComponent.js, a javascript file in the react codebase. 8 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 8f850c79_0562_f37f_80ff_563c50cd0996["ReactFizzClassComponent.js"] 4825696d_2f43_1121_7cc9_951fbe850d0a["ReactFizzLegacyContext.js"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> 4825696d_2f43_1121_7cc9_951fbe850d0a 0cfcefe7_6b5a_1519_f6c8_eefc299c4b12["ReactFizzNewContext.js"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> 0cfcefe7_6b5a_1519_f6c8_eefc299c4b12 8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> 8344de1b_978c_be0f_eebd_38ccc4962a93 1cc61df7_68d3_6bfd_3d03_b179cd58d8f6["ReactInstanceMap"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> 1cc61df7_68d3_6bfd_3d03_b179cd58d8f6 3c38cd62_f628_0c7b_096c_856305caeada["getComponentNameFromType"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> 3c38cd62_f628_0c7b_096c_856305caeada e1e1de60_2be4_0643_45fb_e2c306735427["ReactSymbols"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> e1e1de60_2be4_0643_45fb_e2c306735427 326b1b33_c1be_450b_f53b_51a78bbe8633["assign"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> 326b1b33_c1be_450b_f53b_51a78bbe8633 af78c51d_c7cb_3bf4_550f_f3fcc48f4f34["isArray"] 8f850c79_0562_f37f_80ff_563c50cd0996 --> af78c51d_c7cb_3bf4_550f_f3fcc48f4f34 1b694821_5816_1762_7c98_f0727a09e732["ReactFizzServer.js"] 1b694821_5816_1762_7c98_f0727a09e732 --> 8f850c79_0562_f37f_80ff_563c50cd0996 style 8f850c79_0562_f37f_80ff_563c50cd0996 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 {emptyContextObject} from './ReactFizzLegacyContext';
import {readContext} from './ReactFizzNewContext';
import {disableLegacyContext} from 'shared/ReactFeatureFlags';
import {get as getInstance, set as setInstance} from 'shared/ReactInstanceMap';
import getComponentNameFromType from 'shared/getComponentNameFromType';
import {REACT_CONTEXT_TYPE, REACT_CONSUMER_TYPE} from 'shared/ReactSymbols';
import assign from 'shared/assign';
import isArray from 'shared/isArray';
const didWarnAboutNoopUpdateForComponent: {[string]: boolean} = {};
const didWarnAboutDeprecatedWillMount: {[string]: boolean} = {};
let didWarnAboutUninitializedState;
let didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
let didWarnAboutLegacyLifecyclesAndDerivedState;
let didWarnAboutUndefinedDerivedState;
let didWarnAboutDirectlyAssigningPropsToState;
let didWarnAboutContextTypeAndContextTypes;
let didWarnAboutContextTypes;
let didWarnAboutChildContextTypes;
let didWarnAboutInvalidateContextType;
let didWarnOnInvalidCallback;
if (__DEV__) {
didWarnAboutUninitializedState = new Set<string>();
didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set<mixed>();
didWarnAboutLegacyLifecyclesAndDerivedState = new Set<string>();
didWarnAboutDirectlyAssigningPropsToState = new Set<string>();
didWarnAboutUndefinedDerivedState = new Set<string>();
didWarnAboutContextTypeAndContextTypes = new Set<mixed>();
didWarnAboutContextTypes = new Set<mixed>();
didWarnAboutChildContextTypes = new Set<mixed>();
didWarnAboutInvalidateContextType = new Set<mixed>();
didWarnOnInvalidCallback = new Set<string>();
}
function warnOnInvalidCallback(callback: mixed) {
if (__DEV__) {
if (callback === null || typeof callback === 'function') {
return;
}
// eslint-disable-next-line react-internal/safe-string-coercion
const key = String(callback);
if (!didWarnOnInvalidCallback.has(key)) {
didWarnOnInvalidCallback.add(key);
console.error(
'Expected the last optional `callback` argument to be a ' +
'function. Instead received: %s.',
callback,
);
// ... (644 more lines)
Domain
Subdomains
Functions
Dependencies
- ReactFeatureFlags
- ReactFizzLegacyContext.js
- ReactFizzNewContext.js
- ReactInstanceMap
- ReactSymbols
- assign
- getComponentNameFromType
- isArray
Imported By
Source
Frequently Asked Questions
What does ReactFizzClassComponent.js do?
ReactFizzClassComponent.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 ReactFizzClassComponent.js?
ReactFizzClassComponent.js defines 9 function(s): applyDerivedStateFromProps, callComponentWillMount, checkClassInstance, constructClassInstance, mountClassInstance, processUpdateQueue, warnNoop, warnOnInvalidCallback, warnOnUndefinedDerivedState.
What does ReactFizzClassComponent.js depend on?
ReactFizzClassComponent.js imports 8 module(s): ReactFeatureFlags, ReactFizzLegacyContext.js, ReactFizzNewContext.js, ReactInstanceMap, ReactSymbols, assign, getComponentNameFromType, isArray.
What files import ReactFizzClassComponent.js?
ReactFizzClassComponent.js is imported by 1 file(s): ReactFizzServer.js.
Where is ReactFizzClassComponent.js in the architecture?
ReactFizzClassComponent.js is located at packages/react-server/src/ReactFizzClassComponent.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free