ABC Engineering Interview Question

Explain counter using react js.