From 353bd6e1ab3519379b5775a522bef4bcc92063e1 Mon Sep 17 00:00:00 2001 From: arshiam2 Date: Wed, 3 Oct 2018 11:15:44 -0500 Subject: [PATCH] init --- src/App.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 + " "} + +
  • +
    ))}