mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Step 1-06 Exercise
TodoFooter
- Add a TodoFooter component in the
componentsfolder, copying over the<footer>tag and all of its children fromTodoApp.htmlin thestep1-05folder. This could be a function or class. - Remove any
onclickproperties, and changeclasstoclassName
TodoList
- Add a TodoList component like you did with the footer. This could also be function or class.
- Import TodoListItem and add 4 of them inside of the
<ul> - Bonus points for using a
forloop or usingmapto create 4 list items based on the array[1,2,3,4]
App.tsx
- Import both of these components into
App.tsxand place their tags below theTodoHeader.