Nextjs Questions Flashcards

(4 cards)

1
Q

In Nextjs, what is the page/ directory ?

A
  1. Its the old way of routing
  2. All components by default are client side
  3. you use getServerSideProps to get you props.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In Nextjs, what is the app/ directory?

A
  1. Its the new way to route.
  2. All components are considered server side unless you use the “use clients” to tell it to be a client.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Nextjs?

A

It’s a React framework built on top of Node.js.
It uses node.js to
- Run a Server
- Handle server side rendering
- Create API Routes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly