jsx-dev-runtime.js 416 B

12345678910111213141516171819
  1. // src/jsx/dom/jsx-dev-runtime.ts
  2. import * as intrinsicElementTags from "./intrinsic-element/components.js";
  3. var jsxDEV = (tag, props, key) => {
  4. if (typeof tag === "string" && intrinsicElementTags[tag]) {
  5. tag = intrinsicElementTags[tag];
  6. }
  7. return {
  8. tag,
  9. type: tag,
  10. props,
  11. key,
  12. ref: props.ref
  13. };
  14. };
  15. var Fragment = (props) => jsxDEV("", props, void 0);
  16. export {
  17. Fragment,
  18. jsxDEV
  19. };