1
2
3
4
5
6
Use the "Verify Solution" button to get AI feedback on your React code.
Create a functional React component called Counter that displays a number and provides two buttons: "Increment" and "Decrement".When the "Increment" button is clicked, the displayed number should increase by 1.When the "Decrement" button is clicked, the displayed number should decrease by 1.Ensure the counter cannot go below zero. If the current count is 0, the "Decrement" button should be disabled.