mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Exercise
TodoFooter
- Use the provided
itemCountvalue to display the current number of items left. - Use a ternary operator to print "item" vs "items" based on whether
itemCount === 1.
TodoListItem
- Pull in
labelandcompletedfrom props using destructuring - Set the todo's text to
labeland thecheckedprop tocompletedNote that this is only half the work we need to do to make these controlled inputs work. What is the other half?