Skip to content

Commit 256180a

Browse files
add className done if li is done
1 parent 69f2b84 commit 256180a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ep16-new-css/app/components/DisplayItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default class DisplayItem extends React.Component {
55
render () {
66
var todo = this.props.todo;
77

8-
return <li>
8+
return <li className={ item.done } 'done' : '' }>
99
<input
1010
checked={todo.done}
1111
onChange={this.props.handleDone.bind(null, todo.id)}

0 commit comments

Comments
 (0)