Skip to content

Commit

Permalink
fix: "Todo list" REPL examples (#1179)
Browse files Browse the repository at this point in the history
* fix: "Todo list signals" REPL example

* fix: "Todo list" REPL example
  • Loading branch information
rschristian authored Oct 24, 2024
1 parent 91130be commit d3b3592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function TodoList() {
/>
{todo.completed ? <s>{todo.text}</s> : todo.text}
</label>{' '}
<button onClick={() => removeTodo(index)}>❌</button>
<button type="button" onClick={() => removeTodo(index)}>❌</button>
</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TodoList extends Component {
{todo.completed ? <s>{todo.text}</s> : todo.text}
</label>
{' '}
<button onClick={() => this.removeTodo(index)}>❌</button>
<button type="button" onClick={() => this.removeTodo(index)}>❌</button>
</li>
))}
</ul>
Expand Down

0 comments on commit d3b3592

Please sign in to comment.