UNPKG
jay-js
Version:
latest (0.0.9)
1.0.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Jay is a framework for creating a single page application.
github.com/AJCastello/jay
AJCastello/jay
jay-js
/
ui
/
Button
/
Button.js
8 lines
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
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