Skip to content
RED SAGSkills
medium10 pts · first answer countsreacthooks

Two components using one custom hook

Header and Footer both call useCart(), a custom hook that has useState inside. Adding an item in Header does not update Footer. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions