If you don't already have the app running, start it by running npm start
from the root of the frontend-bootcamp
folder. Click the "exercise" link under day 2 step 4 to see results.
Open exercise/src/components/TodoApp.tsx
Uncomment the missing functions inside the value prop
Open exercise/src/components/TodoFooter.tsx
Use useContext
to access the TodoContext
and replace the two constants with values from the context
Open exercise/src/components/TodoHeader.tsx
Replace onAdd
with a real implementation using the this.context
object
Replace onFilter
with a real implementation using the this.context
object
Be sure to set the contextType
of the TodoHeader component