Skip to content

Commit

Permalink
Merge e34ba37 into efb5677
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Mar 31, 2019
2 parents efb5677 + e34ba37 commit 6b2d95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/todo.js
Expand Up @@ -26,7 +26,7 @@ export default class TodoList extends Component {
<input value={text} onInput={this.setText} />
<button type="submit">Add</button>
<ul>
<TodoItems todos={todos} removeTodo={this.removeTodo}/>
<TodoItems todos={todos} removeTodo={this.removeTodo} />
</ul>
</form>
);
Expand All @@ -38,7 +38,7 @@ class TodoItems extends Component {
render({ todos, removeTodo }) {
return todos.map( todo => (
<li key={todo.id}>
<button onClick={removeTodo} data-id={todo.id}>&times;</button>
<button type="button" onClick={removeTodo} data-id={todo.id}>&times;</button>
{' '}
{todo.text}
</li>
Expand Down

0 comments on commit 6b2d95b

Please sign in to comment.