easyReact Native#1

useState counter with validation

Prompt

Create a React Native component that renders a counter with +1 and -1 buttons. The counter must never go below 0. Show the current count.

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code