Skip to content

⬅️ Back to Table of Contents

📄 this-jsxidentifier.tsx

📊 Analysis Summary

Metric Count
🔧 Functions 3
🧱 Classes 1
📊 Variables & Constants 1
💠 JSX Elements 4

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/jsx/this-jsxidentifier.tsx

Variables & Constants

Name Type Kind Value Exported
React any let/var *not shown*

JSX Elements

Component Type Props Children
div element none none
this.foo element none none
Div.Element component none none
this element none none

Functions

Foo.method(): void

Code
method() {
    <this.foo />;
    (<Div.Element />)(<this />);
  }
  • Return Type: void
  • Calls:
  • complex_call_124

Element(): any

Code
() => <div />
  • Return Type: any

Element(): any

Code
() => <div />
  • Return Type: any

Classes

Foo

Class Code
class Foo {
  foo: any;
  Div = {
    Element: () => <div />,
  };
  method() {
    <this.foo />;
    (<Div.Element />)(<this />);
  }
}

Methods

method(): void
Code
method() {
    <this.foo />;
    (<Div.Element />)(<this />);
  }