AntiPattern

Type and Scope Misuse

scope-and-type-surface-misuse

Misunderstanding JavaScript/React module scope and TypeScript type surfaces causes callbacks, hooks, and imports to be referenced in the wrong place or with the wrong shape. The result is brittle code, runtime errors, and failing typechecks/tests.