by simplify · 7y ago · 0 comments
```
function create_fragment(ctx) { var h1, t0, t1, t2;
return { c() { h1 = element("h1"); t0 = text("Hello "); t1 = text(name); t2 = text("!"); },
m(target, anchor) {
insert(target, h1, anchor);
append(h1, t0);
append(h1, t1);
append(h1, t2);
},
p: noop,
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(h1);
}
}
};
}```
Multiple frameworks have done this for many years, but nobody will listen as everyone is interested in the next new, shiny thing.
I do like Svelte in its latest incarnation though, especially when it integrates with Sapper.