File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ export default class TodoList extends React.Component {
24
24
25
25
const todoLis = filteredTodos . map ( todo => (
26
26
< li key = { todo . id } >
27
- < input type = "checkbox" onChange = { this . toggleComplete . bind ( this , todo ) } value = { todo . complete } checked = { todo . complete } /> { todo . value } </ li >
27
+ < input type = "checkbox" onChange = { this . toggleComplete . bind ( this , todo ) } value = { todo . complete } checked = { todo . complete } />
28
+ < span > { todo . value } </ span >
29
+ </ li >
28
30
) )
29
31
return < div >
30
32
< h1 > todos</ h1 >
31
- < input className = "create " onKeyPress = { this . createNew . bind ( this ) } />
33
+ < input className = "new " onKeyPress = { this . createNew . bind ( this ) } />
32
34
< input className = "filter" value = { filter } onChange = { this . filter . bind ( this ) } />
33
35
< ul > { todoLis } </ ul >
34
36
< a href = "#" onClick = { clearComplete } > Clear Complete</ a >
You can’t perform that action at this time.
0 commit comments