UNPKG

jsx-ast-utils

Version:

AST utility module for statically analyzing JSX

9 lines (8 loc) 194 B
/** * Extractor function for a JSXText type value node. * * Returns self-closing element with correct name. */ export default function extractValueFromJSXText(value) { return value.raw; }