Coding task · Next.js course · Module 1: Next.js Configuration

Practice: Counter with useState

Create a component with useState

Task

Create a Counter component that displays a counter (useState, initial value 0) and a button that increases the counter by 1 on each click.