Create a simple counter component. When clicking on the button the counter should increase by one.

You are free to add classes, styles, ids, but don't edit or remove data-test attributes.

Use the left sidebar to check the problem description (this tab), open the file tree, test cases, shared solutions, or your past submission history.
Use the right sidebar to view your application or view the provided solution.
If requirements are not clear, please always check the provided solution.
Create an account to start coding
Create account