UNPKG

jsx-ast-utils

Version:

AST utility module for statically analyzing JSX

14 lines (13 loc) 301 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = extractValueFromJSXText; /** * Extractor function for a JSXText type value node. * * Returns self-closing element with correct name. */ function extractValueFromJSXText(value) { return value.raw; }