Function: getStaticJsxAttributeStringValue()
function getStaticJsxAttributeStringValue(
attributeValue: Readonly<
| JSXElement
| Literal
| JSXExpression
| null
>
): string | undefined;
Defined in: _internal/estree-utils.ts:126
Resolve a string value from a JSX attribute value.
Supports plain string literals and JSX expression containers that wrap a static string literal or expression-free template literal.
Parametersâ
attributeValueâ
Readonly<JSXElement | Literal | JSXExpression | null>
JSX attribute value node to inspect.
Returnsâ
string | undefined
Static string value when available.