22.
Which keyword is used in Next.js to enable server-side rendering for a specific page?
preRenderProps
renderOnServer
getServerData
getServerSideProps
Correct: D
In Next.js, the getServerSideProps keyword is used to enable server-side rendering for a specific page. This function allows you to fetch data and return it as props, which will be available to the component on the server during the initial render. This ensures that the page is fully rendered and ready to be served to the client, resulting in faster page loads.