

Next.js Flashcard
Flashcard
•
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?