Skip to content

Instantly share code, notes, and snippets.

@themarcba
themarcba / vdom-finished.html
Last active August 22, 2024 04:54
Vue.js-like Virtual DOM
<div id="app"></div>
<script>
// Create virtual node
function h(tag, props, children) {
// Return the virtual node
return {
tag,
props,
children,
}