Factor class lib
new Factor("div", {
child: new Factor("h2", {
text: "Title",
style: {
color: "blue",
},
}),
})
<div>
<h2 style="color: blue;">
Title
</h2>
</div>