diff --git a/mini.js b/mini.js new file mode 100644 index 0000000..f4cecb1 --- /dev/null +++ b/mini.js @@ -0,0 +1,7 @@ +export default new Proxy(document, { + get: (_, tag) => content => { + let node = document.createElement(tag) + for (let key in content) node[key] = content[key] + return node + } +})