Next.js
beginner
15 min
Events
Learn about Events in Next.js.
Events
Events are actions that happen when a user interacts with a page, like clicking a button or typing in a form. React uses camelCase for event names.
Example
<button onClick={handleClick}>Click me</button>Practice
Add an onChange event to an input and log the value to the console.