
Next.js App vs Pages Router
HTML All The Things - Web Development, Web Design, Small Business
00:00
How to Build a React Component in Next JS
You can mix and match server and client components, but only in one direction. When creating a new component page, you can add a string at the top of that page which is used client. As soon as used client is on top of a file, a component, a React component in next JS, it immediately behaves as a standard React component. It will not be generated on the client by default. You are using server components by default now. Deal with it. Now, obviously having said that you could still use the pages router and everything works the same as it did before there. They did not take away the old functionality. In 13.4 next, you can still build the regular
Transcript
Play full episode