Skip to content

Commit d11d501

Browse files
authored
Fix example code
Added the `Header` and `Footer` missing from the example code.
1 parent c982d16 commit d11d501

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ It's a single HTML file, and there's no build or tooling. You can edit it with n
148148
`;
149149
}
150150
}
151+
152+
const Header = ({ name }) => html`<header><h1>${name} List</h1></header>`
153+
154+
const Footer = props => html`<footer ...${props} />`
151155
152156
render(html`<${App} page="All" />`, document.body);
153157
</script>

0 commit comments

Comments
 (0)