15.

What is the output of the following Next.js code?

import React from 'react';
import { useRouter } from 'next/router';

const MyPage = () => {
  const router = useRouter();
  const { id } = router.query;

  return <h1>{id}</h1>;
};

export default MyPage;

An error will occur, as the id variable is not defined.

It outputs MyPage

The HTML <h1> element with the value of the id parameter from the query string.

It outputs router.query