Last active
March 8, 2022 13:11
-
-
Save MatthiasKainer/410795b0c437936124002afde32cdd52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
html, | |
css | |
} from "lit"; | |
import { | |
pureLit | |
} from "pure-lit" | |
const blockStyle = css`:host { display: block; }` | |
pureLit("hello-world", | |
({who}: { who: string }) => html`Hello ${who}!`, | |
{ | |
styles: [blockStyle], | |
defaults: { who: "noone" } | |
} | |
); | |
pureLit("greet-em", | |
() => html`<div>${["george", "john"].map(n => | |
html`<hello-world who=${n}></hello-world>` | |
)}</div>` | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment