GoScrobble/web/node_modules/jsx-ast-utils/lib/values/JSXElement.js

14 lines
345 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = extractValueFromJSXElement;
/**
* Extractor function for a JSXElement type value node.
*
* Returns self-closing element with correct name.
*/
function extractValueFromJSXElement(value) {
return "<" + value.openingElement.name.name + " />";
}