Home / Function/ NonFireComponent() — react Function Reference

NonFireComponent() — react Function Reference

Architecture documentation for the NonFireComponent() function in no-fire-todo-syntax-shouldnt-throw.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  459acea2_873f_14ae_0c11_2a4f318ff8da["NonFireComponent()"]
  1efb0d9e_9f87_015e_41b6_ca0ee7638d9d["no-fire-todo-syntax-shouldnt-throw.js"]
  459acea2_873f_14ae_0c11_2a4f318ff8da -->|defined in| 1efb0d9e_9f87_015e_41b6_ca0ee7638d9d
  style 459acea2_873f_14ae_0c11_2a4f318ff8da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/transform-fire/bailout-retry/no-fire-todo-syntax-shouldnt-throw.js lines 7–21

function NonFireComponent({prop1}) {
  /**
   * This component bails out but does not use fire
   */
  const foo = () => {
    try {
      console.log(prop1);
    } finally {
      console.log('jbrown215');
    }
  };
  useEffect(() => {
    foo();
  });
}

Subdomains

Frequently Asked Questions

What does NonFireComponent() do?
NonFireComponent() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/transform-fire/bailout-retry/no-fire-todo-syntax-shouldnt-throw.js.
Where is NonFireComponent() defined?
NonFireComponent() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/transform-fire/bailout-retry/no-fire-todo-syntax-shouldnt-throw.js at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free