|
@@ -43,6 +43,13 @@ App = React.createClass({
|
|
<header>
|
|
<header>
|
|
<h1>Todo list</h1>
|
|
<h1>Todo list</h1>
|
|
|
|
|
|
|
|
+ <label className="hide-completed">
|
|
|
|
+ <input type="checkbox" readonly={true}
|
|
|
|
+ checked={this.state.hideCompleted}
|
|
|
|
+ onClick={this.toggleHideCompleted} />
|
|
|
|
+ Hide completed
|
|
|
|
+ </label>
|
|
|
|
+
|
|
{/* These are JSX comments. */}
|
|
{/* These are JSX comments. */}
|
|
{/* Beware: for React, onsubmit is not the same as onSubmit, the former doesn't work */}
|
|
{/* Beware: for React, onsubmit is not the same as onSubmit, the former doesn't work */}
|
|
<form className="new-task" onSubmit={this.handleSubmit} >
|
|
<form className="new-task" onSubmit={this.handleSubmit} >
|