Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 733 Bytes

File metadata and controls

29 lines (21 loc) · 733 Bytes

@eslint-react/core / stringifyJsx

Function: stringifyJsx()

function stringifyJsx(node: 
  | JSXClosingElement
  | JSXClosingFragment
  | JSXIdentifier
  | JSXMemberExpression
  | JSXNamespacedName
  | JSXOpeningElement
  | JSXOpeningFragment
  | JSXText): string;

Incomplete but sufficient stringification of JSX nodes for common use cases

Parameters

Parameter Type Description
node | JSXClosingElement | JSXClosingFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXText JSX node from TypeScript ESTree

Returns

string

String representation of the JSX node