Skip to content

⬅️ Back to Table of Contents

📄 namespaced-attribute.tsx

📊 Analysis Summary

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

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx

Variables & Constants

Name Type Kind Value Exported
x any const <Foo a:b="hello" />
y any const <Foo a:b="hello" />

JSX Elements

Component Type Props Children
Foo component a:b="hello" none
Foo component a:b="hello" none
div element none {props['a:b']}

Functions

Foo(props: FooProps): any

Code
function Foo(props: FooProps) {
  return <div>{props['a:b']}</div>;
}
  • Parameters:
  • props: FooProps
  • Return Type: any

Interfaces

FooProps

Interface Code
interface FooProps {
  'a:b': string;
}

Properties

Name Type Optional Description
'a:b' string