소스 검색

Step 4.1: Add form for new tasks.

Frederic G. MARAND 9 년 전
부모
커밋
2b568ab460
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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>