ReactMultiChildReconcile-test.js — react Source File
Architecture documentation for ReactMultiChildReconcile-test.js, a javascript file in the react codebase.
Entity Profile
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.
*
* @emails react-core
*/
'use strict';
const React = require('react');
const ReactDOMClient = require('react-dom/client');
const act = require('internal-test-utils').act;
const stripEmptyValues = function (obj) {
const ret = {};
for (const name in obj) {
if (!obj.hasOwnProperty(name)) {
continue;
}
if (obj[name] !== null && obj[name] !== undefined) {
ret[name] = obj[name];
}
}
return ret;
};
let idCounter = 123;
/**
* Contains internal static internal state in order to test that updates to
* existing children won't reinitialize components, when moving children -
* reusing existing DOM/memory resources.
*/
class StatusDisplay extends React.Component {
state = {internalState: idCounter++};
getStatus() {
return this.props.status;
}
getInternalState() {
return this.state.internalState;
}
componentDidMount() {
this.props.onFlush();
}
componentDidUpdate() {
this.props.onFlush();
}
render() {
return <div>{this.props.contentKey}</div>;
}
}
/**
// ... (925 more lines)
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does ReactMultiChildReconcile-test.js do?
ReactMultiChildReconcile-test.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 ReactMultiChildReconcile-test.js?
ReactMultiChildReconcile-test.js defines 10 function(s): getInternalStateByUserName, prepareChildrenArray, prepareChildrenLegacyIterable, prepareChildrenModernIterable, stripEmptyValues, testPropsSequence, testPropsSequenceWithPreparedChildren, verifyDomOrderingAccurate, verifyStatesPreserved, verifyStatuses.
Where is ReactMultiChildReconcile-test.js in the architecture?
ReactMultiChildReconcile-test.js is located at packages/react-dom/src/__tests__/ReactMultiChildReconcile-test.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom/src/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free