More day 1 updates

This commit is contained in:
Elizabeth Craig
2019-02-28 00:05:25 -08:00
parent dac6f4b5d8
commit 9007b137ca
9 changed files with 67 additions and 51 deletions

View File

@@ -2,11 +2,11 @@
### 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`
1. Use the provided `itemCount` value to display the current number of items left.
2. Use a ternary operator to print "item" vs "item**s**" based on whether `itemCount === 1`.
### TodoListItem
1. Pull in `label` and `completed` from props using [destructuring](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Object_destructuring)
2. Set the todo's text to `label` and the `checked` prop to `completed`
> Note that this is only half the work we need to do to make these controlled inputs. What is the other half?
> Note that this is only half the work we need to do to make these controlled inputs work. What is the other half?