Selaa lähdekoodia

Step 4.1: Add form for new tasks.

Frederic G. MARAND 9 vuotta sitten
vanhempi
sitoutus
2b568ab460
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      App.jsx

+ 5 - 0
App.jsx

@@ -26,6 +26,11 @@ App = React.createClass({
       <div className="container">
         <header>
           <h1>Todo list</h1>
+
+          {/* These are JSX comments. */}
+          <form className="new-task" onsubmit={this.handleSubmit} >
+            <input type="text" ref="textInput" placeholder="Type to add new tasks" />
+            </form>
           </header>
 
         <ul>