Releases: developit/vhtml
Releases Β· developit/vhtml
2.2.0
2.1.0
2.0.0
- Add support for Pure Functional Components!
const Box = ({ title, children }) => (
<div class="box">
<h4>{title}</h4>
{children}
</div>
);
console.log(
<div>
<Box title="foo">
Hello, I am <strong>foo</strong>.
</Box>
<Box title="bar">
Hi! I am <strong>bar</strong>!
</Box>
</div>
);
This logs:
<div>
<div class="box">
<h4>foo</h4>
Hello, I am <strong>foo</strong>.
</div>
<div class="box">
<h4>bar</h4>
Hi! I am <strong>bar</strong>!
</div>
</div>