Deviopath › React

Two Independent Counters

Easy · State

Finish the Counter component: it shows <p>Count: 0</p> and a "+1" button that adds 1.

App renders two counters. Each one must keep its own count: clicking the first counter must not change the second.

Next: Never Below Zero