Ver Fonte

Step 4.1: Add form for new tasks.

Frederic G. MARAND há 9 anos atrás
pai
commit
2b568ab460
1 ficheiros alterados com 5 adições e 0 exclusões
  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>