@ea-lab/reactive-json
Version:
A REACT-based lib that transforms JSON (or YAML) into interactive HTML markup.
11 lines (10 loc) • 372 B
JavaScript
import { normalizeAttributeNameForReactJsx as z } from "../../engine/utility/reactJsxHelpers.js";
const N = ({ attributes: c, singleTransformProps: d }) => {
if (typeof (d == null ? void 0 : d.name) != "string" || d.name === "")
return c;
const x = z(d == null ? void 0 : d.name);
return c != null && c[x] && delete c[x], c;
};
export {
N as unsetAttribute
};