@anoki/fse-ui
Version:
FSE UI components library
10 lines (9 loc) • 366 B
JavaScript
import * as r from "react";
const o = (e) => {
if (!r.isValidElement(e)) throw Error(`Expected a single React Element child, but got: ${r.Children.toArray(e).map((t) => typeof t == "object" && "type" in t && typeof t.type == "string" ? t.type : typeof t).join(", ")}`);
return e;
};
export {
o as requireReactElement
};
//# sourceMappingURL=index.es624.js.map