Skip to content

Instantly share code, notes, and snippets.

@dai-shi
Created March 27, 2016 12:45
Show Gist options
  • Select an option

  • Save dai-shi/1c0c67f6d53456e276d1 to your computer and use it in GitHub Desktop.

Select an option

Save dai-shi/1c0c67f6d53456e276d1 to your computer and use it in GitHub Desktop.
diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx
index 8f1bf8b..c452da9 100644
--- a/imports/ui/App.jsx
+++ b/imports/ui/App.jsx
@@ -18,6 +18,14 @@ class App extends Component {
<div className="container">
<header>
<h1>Todo List</h1>
+
+ <form className="new-task" onSubmit={this.handleSubmit.bind(this)} >
+ <input
+ type="text"
+ ref="textInput"
+ placeholder="Type to add new tasks"
+ />
+ </form>
</header>
<ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment