Skip to content

⬅️ Back to Table of Contents

📄 jsx-attributes.tsx

📊 Analysis Summary

Metric Count
🔧 Functions 1
📊 Variables & Constants 1
💠 JSX Elements 2

📚 Table of Contents

🛠️ File Location:

📂 packages/parser/tests/fixtures/scope-analysis/jsx-attributes.tsx

Variables & Constants

Name Type Kind Value Exported
text "text" const 'text'

JSX Elements

Component Type Props Children
div element none
input element type="search", size={30}, placeholder={text} none

Functions

Foo(): any

Code
export function Foo() {
  return (
    <div>
      <input type="search" size={30} placeholder={text} />
    </div>
  );
}
  • Return Type: any