Home / Class/ ProfilerChild Class — react Architecture

ProfilerChild Class — react Architecture

Architecture documentation for the ProfilerChild class in shared.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  08c455d0_8143_4df0_56e3_608f66484476["ProfilerChild"]
  5307ca48_73ed_9094_d124_b0724b52c950["shared.js"]
  08c455d0_8143_4df0_56e3_608f66484476 -->|defined in| 5307ca48_73ed_9094_d124_b0724b52c950
  08c93c91_10f2_0668_c59b_ce2b2c40967c["render()"]
  08c455d0_8143_4df0_56e3_608f66484476 -->|method| 08c93c91_10f2_0668_c59b_ce2b2c40967c

Relationship Graph

Source Code

fixtures/devtools/regression/shared.js lines 143–155

        class ProfilerChild extends React.Component {
          state = {count: 0};
          incrementCount = () =>
            this.setState(prevState => ({count: prevState.count + 1}));
          render() {
            return (
              <div>
                count: {this.state.count}{' '}
                <button onClick={this.incrementCount}>increment</button>
              </div>
            );
          }
        }

Frequently Asked Questions

What is the ProfilerChild class?
ProfilerChild is a class in the react codebase, defined in fixtures/devtools/regression/shared.js.
Where is ProfilerChild defined?
ProfilerChild is defined in fixtures/devtools/regression/shared.js at line 143.

Analyze Your Own Codebase

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

Try Supermodel Free