No video

6 Different Methods to Create Search in Next.js 13

  Рет қаралды 9,817

makrdev

makrdev

Күн бұрын

We will build the same search functionality with 6 different methods. First, local search with 'useState' and 'Jotai'. And, then we will build client-side search with 'swr' and 'react query'. Finally, we will build server-side search with 'Search Params' and 'Server Actions'.
Source Code: github.com/batuhanbilginn/sea...
Live Version: search-nextjs13.vercel.app/
- timestamps -
00:00 - Intro
00:52 - Project Overview
02:28 - 1) Local Search: useState Hook
06:41 - 2) Local Search: Jotai
11:05 - 3) Client-side Search: useSWR
17:59 - 4) Client-side Search: React Query
22:15 - 5) Server-side Search: Search Params
36:00 - 6) Server-side Search: Server Actions
#nextjs #typescript #search #serveractions #jotai #react

Пікірлер: 33
@rafaelgomes3054
@rafaelgomes3054 Жыл бұрын
Love your content! I'm glad to see you zoomed in a bit on the code! I saw an older vid and it was too small to read what you were doing! Now it's great! Gonna subscribe! I love that you are tackling more complex problems than other creators! Keep it up!
@makrdev
@makrdev Жыл бұрын
Oh thank you Rafael. Yeah I’m trying to improve the experience and quality. 🫶🏼
@codenerd7823
@codenerd7823 Жыл бұрын
I am glad youtube brought me here, it was fun and educating video. Wish to see more from you on YT. Keep it up, and keep growing...
@makrdev
@makrdev Жыл бұрын
I’m glad you liked it 🫶🏼
@Davxinci
@Davxinci Жыл бұрын
Amazing work! Thank you for the breakdown very informative and helpful! I'm sure english is your 2nd + language but you did very well, excited to see more - keep 'em coming.
@makrdev
@makrdev Жыл бұрын
Yeah, it’s my second language. I think I’m getting better with each video I make. Thank you for your kindness 🫶🏼
@baybay1234
@baybay1234 Жыл бұрын
Thanks for breaking down the methods of handling search in nextjs 13. One thing I’d like to point out is that I find the term “local” used here to describe the first two methods is a bit confusing because they are technically also client-side search, except that they don’t use 3rd party libraries such as react-query and swr to handle caching and etc. other than that, awesome and informative video!
@makrdev
@makrdev Жыл бұрын
Thanks 🙏 Yeah you are right but I couldn’t find a proper definition except ‘local’ 😑
@faisal_dev951
@faisal_dev951 Жыл бұрын
tysm learned alot about ways of implementing search
@makrdev
@makrdev Жыл бұрын
Thank you so mush Faisal!
@xiiEJRAM
@xiiEJRAM Жыл бұрын
Your content about Next js is unique keep going 🔥🔥🔥
@makrdev
@makrdev Жыл бұрын
Thank you dude ❤️
@backendfyi
@backendfyi Жыл бұрын
you earned a new subscriber. thank you for this video
@makrdev
@makrdev Жыл бұрын
Thanks a lot 😊
@backendfyi
@backendfyi Жыл бұрын
@@makrdev you deserve it pal
@pidchashyi
@pidchashyi Жыл бұрын
Your videos are the best. will you do a big nextjs app?
@makrdev
@makrdev Жыл бұрын
Thanks! What do you have on your mind?
@adarshrathi8265
@adarshrathi8265 Жыл бұрын
excellent
@Nahary
@Nahary Жыл бұрын
I needed this! thank you. do you use prisma?
@makrdev
@makrdev Жыл бұрын
Great to hear that 👍 Yeah, I use sometimes. Do you have a content idea?
@Nahary
@Nahary Жыл бұрын
@@makrdev thank you for the reply! I am currently struggling with implementing pagination with Prisma and NextJs. could you make a video on this? (in the Api routes and client side). thanks again.
@makrdev
@makrdev Жыл бұрын
@@Nahary I’ll add this into my list 🤞
@OnlyJavascript
@OnlyJavascript Жыл бұрын
@@makrdev please please make complete tut on next auth. not just regular register /login. add password reset, roles and permissions, mailing functionality. (stack: next, prisma, ts, react query). it would super useful. no good tut available in the YT. your content will be the first. thanks in advance.
@QtheCoder
@QtheCoder Жыл бұрын
Your audio and picture is crispy. What equipment do you use?
@makrdev
@makrdev Жыл бұрын
Thanks! The mic is Thronmax M1 Pro and the cam is Sony A73.
@user-vq8nl7zy9m
@user-vq8nl7zy9m 11 ай бұрын
with server action, if i use 2 tabs to access , it returns the same movies in both tabs
@raiyansarker
@raiyansarker Жыл бұрын
How do you record your videos?
@makrdev
@makrdev Жыл бұрын
What do you mean by how?
@nusesteroide
@nusesteroide Жыл бұрын
good content. I am trying to do the first case but fetching data from the server and I am not being able to do it.
@makrdev
@makrdev Жыл бұрын
Thanks join our discord so I may help.
@SR-zi1pw
@SR-zi1pw Жыл бұрын
Nice video mate 🫡 can use fuse for fuz search
@makrdev
@makrdev Жыл бұрын
Thank you bro 🤜 I didn’t understand what you asked 😑
Learn Next.js 13.4 Server Actions in 24 minutes (For beginners)
24:45
How to create background jobs with Next.js and Inngest
23:33
makrdev
Рет қаралды 3,3 М.
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 10 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 26 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 11 МЛН
Server vs client components in NextJs 13 - When to use which
34:07
Hamed Bahram
Рет қаралды 34 М.
Build a Search Bar with Next.js and Prisma (Search API endpoint)
40:22
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 601 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 171 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 735 М.
Next 14 + React Query COMBO with Server Actions and RSC
9:49
developedbyed
Рет қаралды 96 М.
Adding Search Feature in Server Components | NextJs 13
22:25
Hamed Bahram
Рет қаралды 19 М.
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 264 М.
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 10 МЛН