jay-js
Version:
Jay is a framework for creating a single page application.
15 lines • 426 B
JavaScript
import { Element } from "../Element";
import { setProp } from "../../utils/setProp";
export const Section = (props) => {
const obj = Element({ tag: "section", ...props });
obj.set = (value) => {
setProp(obj, value);
};
obj.clear = () => {
while (obj.firstChild) {
obj.removeChild(obj.firstChild);
}
};
return obj;
};
//# sourceMappingURL=Section.js.map