UNPKG

jay-js

Version:

Jay is a framework for creating a single page application.

8 lines 281 B
import { Element } from "../Element"; import "./Button.style.css"; export const Button = (props) => { const obj = Element({ ...props, tag: "button" }); props.click && (obj.addEventListener("click", props.click)); return obj; }; //# sourceMappingURL=Button.js.map