File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
ep17-edit-todo/app/components Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,25 @@ export default class DisplayItem extends React.Component {
5
5
render ( ) {
6
6
var todo = this . props . todo ;
7
7
8
- return < li className = { todo . done ? 'done' : '' } >
9
- < input
10
- checked = { todo . done }
11
- onChange = { this . props . handleDone . bind ( null , todo . id ) }
12
- type = "checkbox"
13
- style = { { fontSize : 'x-large' } } />
8
+ return < div >
9
+ < li className = { todo . done ? 'done' : '' } >
10
+ < input
11
+ checked = { todo . done }
12
+ onChange = { this . props . handleDone . bind ( null , todo . id ) }
13
+ type = "checkbox"
14
+ style = { { fontSize : 'x-large' } } />
14
15
15
- < label >
16
- { todo . title }
17
- </ label >
16
+ < label >
17
+ { todo . title }
18
+ </ label >
18
19
19
- < a href = '#'
20
- className = "destroy"
21
- onClick = { this . props . handleDelete . bind ( null , todo . id ) } >
22
- [x]
23
- </ a >
24
- </ li > ;
20
+ < a href = '#'
21
+ className = "destroy"
22
+ onClick = { this . props . handleDelete . bind ( null , todo . id ) } >
23
+ [x]
24
+ </ a >
25
+ </ li >
26
+ </ div >
25
27
}
26
28
27
29
}
You can’t perform that action at this time.
0 commit comments