This package provides an HTML Tags shorthand set for nocta
package.
This package is deprecated. Use Yandel package.
Add this package to your npm project as well as nocta:
npm install nocta-tags
Use the HTML tags in your nocta
project:
import { div, button } from "nocta-tags";
const CartButton: Nocta.Template<Nocta.Tag<"div">> = () => {
const handleClickCardButton = () => {
console.log("Card button click");
};
return div(
{
style: {
backgroundColor: "black",
},
},
[
button(
{
onclick: handleClickCardButton,
},
["Add to cart"]
),
]
);
};