Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
bind(this)`
<h2>Todo</h2>
<div>
<span>${this.remaining()} of ${this.todos.length} remaining</span>
[ <a href=""> this.archive(e)} >archive</a> ]
<ul class="unstyled">
${ this.todos.map( (item, index) => wire(item)`<li><label>
<input data-index="${index}"> this.done(e)} type=checkbox checked=${item.done}/>
<span>${item.text}</span>
</label></li>`)}
</ul>
<form> this.addToDo(e)}>
<input id="text" placeholder="add new todo here" size="30" type="text">
<input value="add" type="submit">
</form>
</div>`;
}