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

Advanced: Practice: Handling onClick Events

Create a component with event handling

Task

In the App component, create a <button> that shows an alert with the message 'Button was clicked!' when it is clicked (onClick).