Home / Class/ ComponentA Class — react Architecture

ComponentA Class — react Architecture

Architecture documentation for the ComponentA class in ReactDOMInput-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  6bbc7084_c0b8_f364_d253_4ef6f8e75a2c["ComponentA"]
  118068ac_749f_d3e1_1997_e450bfcca8e4["ReactDOMInput-test.js"]
  6bbc7084_c0b8_f364_d253_4ef6f8e75a2c -->|defined in| 118068ac_749f_d3e1_1997_e450bfcca8e4
  ab47d682_5418_d0f0_64c0_508f520ef705["componentDidUpdate()"]
  6bbc7084_c0b8_f364_d253_4ef6f8e75a2c -->|method| ab47d682_5418_d0f0_64c0_508f520ef705
  f220ed1f_58c8_0434_5153_c0bdb3173679["componentDidMount()"]
  6bbc7084_c0b8_f364_d253_4ef6f8e75a2c -->|method| f220ed1f_58c8_0434_5153_c0bdb3173679
  f9df2475_9ad7_7f6b_0593_5761ad5f6efb["render()"]
  6bbc7084_c0b8_f364_d253_4ef6f8e75a2c -->|method| f9df2475_9ad7_7f6b_0593_5761ad5f6efb

Relationship Graph

Source Code

packages/react-dom/src/__tests__/ReactDOMInput-test.js lines 1799–1826

    class ComponentA extends React.Component {
      state = {changed: false};
      handleChange = () => {
        this.setState({
          changed: true,
        });
      };
      componentDidUpdate() {
        sharedParent.appendChild(container2);
      }
      componentDidMount() {
        ReactDOM.render(<ComponentB />, container2);
      }
      render() {
        return (
          <div>
            <input
              ref={n => (aNode = n)}
              type="radio"
              name="fruit"
              checked={false}
              onChange={this.handleChange}
            />
            A
          </div>
        );
      }
    }

Frequently Asked Questions

What is the ComponentA class?
ComponentA is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactDOMInput-test.js.
Where is ComponentA defined?
ComponentA is defined in packages/react-dom/src/__tests__/ReactDOMInput-test.js at line 1799.

Analyze Your Own Codebase

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

Try Supermodel Free