Skip to content
RED SAG Skills
mediumStudy question · answer published in React interview questions, so no pointsreacthooks

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