Mastering Next.js Route Handlers: A Comprehensive Guide

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I love the way you explained the route handlers. I’ve watched many videos trying to explain what you did in 30+ minutes. I fully understand the process now. Thanks!

cloudagnostic
Автор

Thanks for all your videos! I started my first Next commercial project, thinking something like "I know React and CRA, so let's go for it". I quickly got stuck on APIs, and discovered your channel thanks to this video. I put the project on standby while I watched your entire playlist, which was very well explained in a simple way.

davidheimfert
Автор

I've been waiting so long for this video and my guy just uploaded, great job👍🏻❤️🐐

shvear
Автор

whats the purpose of using useRouter instead of redirect(21:34) on the view post button? Whats the difference? can anyone explain?

tasfiqjawaad
Автор

a really useful guide, thanks
it would be better if you uploaded the final code to the git repo so that it can be quickly re-read without reviewing the video

voltge
Автор

@Code Ryan Why is it needed to fetch it from route handlers first 24:04 before fetching it in posts page? Is it not possible to fetch it directly in posts page without the route handler?

carlotubigon
Автор

Thanks for detailed explanation. but I have one confusion, what is the need of route handler when we can do the same thing from server components and client components.

HigherStudyAspirant
Автор

nicely explained. Even to me it made all sense. Just one question. Isn't it better to have the components directory outside of the app router ? since if we have it inside we would effectively create new routes ending up with localhost:3000/components/ or doesn't it make a difference as long as we don't define a route or page file ?

SuperYoda
Автор

Would be great if this video had timestamps :)

Elias-xpbs
Автор

I have an question? Since we can get data with fetch method, so why we need route hander ?

Rotanakkosal
Автор

thank you boss! hi beautiful dog, you about to go for a walk!

stanleychukwu
Автор

still don't understand the logic for not allow to create route.ts at the same route segment

mohanram