Home / File/ todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js — react Source File

todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js — react Source File

Architecture documentation for todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js, a javascript file in the react codebase.

Entity Profile

Source Code

// @skip
// Passed but should have failed

// This is invalid because "use"-prefixed functions used in named
// functions are assumed to be hooks.
React.unknownFunction(function notAComponent(foo, bar) {
  useProbablyAHook(bar);
});

Frequently Asked Questions

What does todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js do?
todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js is a source file in the react codebase, written in javascript.
Where is todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js in the architecture?
todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/rules-of-hooks/todo.invalid.invalid-rules-of-hooks-a63fd4f9dcc0.js (directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/rules-of-hooks).

Analyze Your Own Codebase

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

Try Supermodel Free