This page showcases ES Modules in conjunction with the .mjs file extension.
View Source on Now or read the blog post.


import logo from './modules/logo.mjs'


export default function createLogo () {
const el = document.createElement('svg');
el.innerHTML = `<svg viewBox="0 0 512 512" xmlns="">
<linearGradient x1="196.572434%" y1="228.815483%" x2="50%" y2="50%" id="a">
<stop offset="0%"/>
<stop stop-color="#FFF" offset="100%"/>
<path d="M254 156.459299L367 356H141" fill="url(#a)" fill-rule="evenodd"/>
return el;