; JSX opening elements: <Foo ...>
(jsx_opening_element
  name: (identifier) @jsx.tag)

; JSX self-closing elements: <Foo ... />
(jsx_self_closing_element
  name: (identifier) @jsx.tag)

; JSX member expression elements: <Foo.Bar>
(jsx_opening_element
  name: (member_expression) @jsx.member_tag)

(jsx_self_closing_element
  name: (member_expression) @jsx.member_tag)
