import type {ElementType, Key} from 'react'; import {createElement, Fragment} from './wp-element-shim'; export {Fragment}; // Compile JSX to the exact element version supplied by this WordPress installation. export function jsx(type: ElementType, props: Record, key?: Key) { return createElement(type, key === undefined ? props : {...props, key}); } export const jsxs = jsx; export const jsxDEV = jsx;