Nextjs Questions Flashcards
(4 cards)
1
Q
In Nextjs, what is the page/ directory ?
A
- Its the old way of routing
- All components by default are client side
- you use getServerSideProps to get you props.
2
Q
In Nextjs, what is the app/ directory?
A
- Its the new way to route.
- All components are considered server side unless you use the “use clients” to tell it to be a client.
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.
4
Q
A