Merge branch 'master' of github.com:Microsoft/frontend-bootcamp

This commit is contained in:
Ken
2019-02-26 23:09:12 -08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
### TodoFooter
1. Use the provided `itemCount` value drive the number of items left.
2. Use a ternary operator to print `item` vs `items` based on if `itemCount > 1`
2. Use a ternary operator to print `item` vs `items` based on if `itemCount === 1`
### TodoListItem

View File

@@ -5,7 +5,7 @@ export const TodoFooter = (props: any) => {
return (
<footer>
<span>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount === 1 ? '' : 's'} left
</span>
<button className="submit">Clear Completed</button>
</footer>