Function isJsxChild

  • Test if a node is a JsxChild.

    Parameters

    • node: Node

    Returns node is JsxChild

    Whether the given node appears to be a JsxChild.

    Deprecated

    With TypeScript v5, in favor of typescript's isJsxChild.

    Example

    declare const node: ts.Node;

    if (isJsxChild(node)) {
    // ...
    }