Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const data = [1,2,3]
- hyperHTML.bind(document.getElementById('root'))`
- <h1>Hello, world!</h1>
- ${ data.map( num => hyperHTML.wire()`<li>${num}</li>` ) }
- `;
- hyperHTML.bind(document.getElementById('root'))`
- <h1>Hello, world!</h1>
- ${ data.map( num => `<li>${num}</li>`) }
- `;
- hyperHTML.define(numberListItem, num => `<li>${num}</li>`)
- hyperHTML.bind(document.getElementById('root'))`
- <h1>Hello, world!</h1>
- ${ data.map( num => ${{numberListItem: num}}) }
- `;
Add Comment
Please, Sign In to add comment