16.
What is a route handler in Next.js?
It is a configuration file that defines the behavior of a specific route.
It is a library that provides additional functionalities for routing and navigation.
It is a component that renders the content for a specific route in the browser.
It is a function that runs on the server and handles requests for a specific route.
Correct: D
A route handler in Next.js is a function that runs on the server and handles requests for a specific route. It is responsible for fetching data, rendering a component, or performing any other server-side logic before sending the response to the client.