webpack-config-demo/dist/bundle.js
Primakov Alexandr Alexandrovich 7eb2fb7326 lesson-02 base setup
2024-10-04 11:44:01 +03:00

1 line
403 B
JavaScript

(()=>{"use strict";const e=(e,t,...c)=>{const n=document.createElement(e);for(const e in t){const c=t[e];if("style"===e)for(const e in c)n.style[e]=c[e];else n[e]=c}return n.append(...c),n};document.getElementById("app").append(e("div",{style:{padding:"30px",backgroundColor:"#ccc"}},e("h1",{style:{color:"green"}},"Привет мир"),e("img",{src:"/dist-off/images/1150e57a6c2fd37e2d0c.jpg"})))})();