diff --git a/src/App.js b/src/App.js index 173fbd3..8af6dd8 100644 --- a/src/App.js +++ b/src/App.js @@ -13,12 +13,16 @@ class App extends Component { ] }; + handleDelete = event => { + console.log("DELETE"); + }; + handleChange = event => { this.setState({ newTodo: event.target.value }); }; handleSubmit = event => { - event.preventDefault() + event.preventDefault(); this.setState({ todos: [...this.state.todos, this.state.newTodo], newTodo: "" @@ -30,7 +34,12 @@ class App extends Component {

How to make boba at home

{this.state.todos.map(todo => ( -
  • {todo}
  • +
    +
  • + {todo + " "} + +
  • +
    ))}