Next.js Flashcard

Next.js Flashcard

Assessment

Flashcard

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is Next.js primarily used for?

Back

Server-side rendering and static site generation

2.

FLASHCARD QUESTION

Front

Which command is used to create a new Next.js project? Options: npx create-react-app my-app, npx create-next-app my-app, npm install next, npx new-next-app my-app

Back

npx create-next-app my-app

3.

FLASHCARD QUESTION

Front

What is the default routing mechanism in Next.js?

Back

File-based routing

4.

FLASHCARD QUESTION

Front

Which method is used for static site generation (SSG) in Next.js?

Back

getStaticProps

5.

FLASHCARD QUESTION

Front

What function is used to generate dynamic routes at build time in Next.js?

Back

getStaticPaths

6.

FLASHCARD QUESTION

Front

What is the default folder for storing API routes in Next.js?

Back

pages/api

7.

FLASHCARD QUESTION

Front

Which of the following is true about getServerSideProps? It runs at build time only, It fetches data on every request, It runs only on the client-side, It replaces useEffect for fetching data

Back

It fetches data on every request

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?