Skip to content
RED SAG Skills
medium10 pts · first answer countsreactstaterendering

Two counters that share state

Toggling isPaid swaps between two Counter elements, but the count does not reset. Why?

{isPaid ? <Counter label="Paid" /> : <Counter label="Due" />}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions