We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d59c3d0 commit e731f7aCopy full SHA for e731f7a
ep13-clear-completed/app/components/App.jsx
@@ -55,10 +55,12 @@ export default class App extends React.Component {
55
</form>
56
57
<p>
58
- Number of total tasks: { this.state.todos.length }
+ All: ({ this.state.todos.length }) |
59
+ Completed: ({ this.state.todos.filter((todo) => { return todo.done }).length }) |
60
+ Pending: ({ this.state.todos.filter((todo) => { return !todo.done }).length }) |
61
+ <a href='#'>Clear Completed</a>
62
</p>
63
- Number of total tasks done: { this.state.todos.filter((todo) => { return todo.done }).length }
64
65
66
<DisplayList
0 commit comments