No video

Build A Functional Search Bar with Next.js (SearchParams)

  Рет қаралды 19,165

Brett Westwood - Software Engineer

Brett Westwood - Software Engineer

Күн бұрын

Пікірлер: 47
@amberm-31
@amberm-31 6 ай бұрын
I wasted a few hours trying to figure some of this out and then skipped to the middle of your video and got my errors fixed in 5 minutes. Life saver. Thank you.
@brettwestwooddeveloper
@brettwestwooddeveloper 6 ай бұрын
Awesome Amber! Glad I could help you out there
@dotaimbalegends7
@dotaimbalegends7 Жыл бұрын
You provided amazing tutorials on the new version of Next.js. I was thrilled to find your tutorials so quickly after the release of the update!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you!
@0the0ambient0
@0the0ambient0 6 ай бұрын
Nice video. Thank you. It answers some things more clearly than other resources (including the Next.js docs)
@chriseski
@chriseski Жыл бұрын
The content you are working on in each of your videos are really to the point and very usefull. Simple and nice explanation as well! But Brett, when I see your desktop, I get instant anxiety disorder 😅. I am one of those order freaks, I admit it... Thank you for your helpfull videos, keep up! 💪
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thanks for the kind words and yea my desktop is messy for sure
@oOserkanCakmakOo
@oOserkanCakmakOo Жыл бұрын
Thank you for sharing useful informations Brett
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
You are welcome!
@maskman4821
@maskman4821 9 ай бұрын
This is very useful and practical project, thank you Sir so much 🙏
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
You are welcome! Thanks for the sub!
@Sylar7773
@Sylar7773 Жыл бұрын
Thank YOU very very very much!!!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
You're welcome!
@eshw23
@eshw23 Жыл бұрын
Nice video, a video on Nextjs Api routes with CRUD functionality would be great, preferably using React query and axios instead of fetch, along with dynamic routes on the client side to if possible, maybe a simple todo app tutorial or something. Thanks!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Great idea! Can definitely work on that!
@johnysnowy35
@johnysnowy35 10 ай бұрын
Thanks, I was struggling with NextJS (coming from React) and this example was perfect to understand the basic nuances.
@chetanpanchal888
@chetanpanchal888 7 ай бұрын
Hi Brett, This tutorial is really helpful but I different use case - I have home page and search results page I have search bar on both the pages now my problem is when I search from result page I am able to getSearchResults but from home page I am unable to handle this. Any idea or suggestion?
@codedwebs
@codedwebs Жыл бұрын
Hi, Brett you are doing great work. i think i want to point out is that I feel your voice is low. On 100% volume sometime its hard to understand what you saying.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thanks for the tip!
@kenthefley2226
@kenthefley2226 Жыл бұрын
Brett, just out of curiosity, Why did you use an API endpoint instead of just fetching the data from a server component in the app router?
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
I was using the useState hook and wanted my fetch to come from a server. I assume you can probably do what you are saying as well. I think there is multiple ways to do one thing
@kenthefley2226
@kenthefley2226 Жыл бұрын
@@brettwestwooddeveloper thanks Brett. I'm glad you did it this way. I need to learn the API routes.
@ozgursar5386
@ozgursar5386 Жыл бұрын
This is usually done to hide sensitive data such as API keys from the client-side
@prathamesh_dalvi9421
@prathamesh_dalvi9421 Жыл бұрын
can u make a video oif how to merge elastic search to this search bar
@nourara-sl1hu
@nourara-sl1hu 5 ай бұрын
nice video , can you help me to find this benift in VC code when you start writing the first word the vc code gaves you the complete sentence
@brettwestwooddeveloper
@brettwestwooddeveloper 5 ай бұрын
github copilot
@loc5706
@loc5706 2 ай бұрын
how about search as you type? why need to press enter?
@temzeks
@temzeks 9 ай бұрын
I want to implement same approach for a search, but with multiple dropdowns, would this approach still be viable for me ?
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
Yes this approach would be viable for you still.
@webber5629
@webber5629 Жыл бұрын
Thanks , But how to fetch the coins if the user types anything in input automatically fetching that data without need to click search button ?
@dingusn
@dingusn 10 ай бұрын
You would just call the handleSubmit function in the onChange in the input rather than on the button.
@stevebendersky2056
@stevebendersky2056 9 ай бұрын
using api folder with route.js is considered to be more correct? because I don't see any difference if I just use regular fetch in the component itself
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
yes route.js or route.ts is the correct syntax
@stevebendersky2056
@stevebendersky2056 9 ай бұрын
okay thanks. and then I could use it within async server component?@@brettwestwooddeveloper
@stevebendersky2056
@stevebendersky2056 9 ай бұрын
and also, how can I access cookies from the route? as I want to send the user accesstoken in each fetch request through Authorisation
@stevebendersky2056
@stevebendersky2056 9 ай бұрын
Why use traditional useState and useEffect? why not just useSWR to fetch the data?
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
I like using useState and useEffect
@nuvola-b
@nuvola-b Жыл бұрын
this is not server side. whats the point of writing nextjs 13 if you use it client side? it becomes basic react.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Yea thought the same idk though
@codingtranquility
@codingtranquility 9 ай бұрын
From my understanding you would use client side for more dynamic pages, and server side for more static. The advantages of next would be the cooked in optimizations, and it being more maintained. For this kind of application you could just use Vite, but you'd be missing out on Next's router etc.
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
you are correct.@@codingtranquility
@yaswanthgosula2468
@yaswanthgosula2468 Жыл бұрын
This is old way of data fetching. Next JS documentation data fetching recommends fetching on server side. Better to use SRC
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
I have a video on data fetching with server side, technically you can do client or server, but if you want to use React hooks then it must be client
@dominiondaniel1585
@dominiondaniel1585 Жыл бұрын
You did a great job but please,next time go straight to the point.We already know how to create a next app.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you!
@yaswanthgosula2468
@yaswanthgosula2468 Жыл бұрын
This is old way of data fetching. Next JS documentation data fetching recommends fetching on server side. Better to use SRC
@nusesteroide
@nusesteroide Жыл бұрын
Can you provide link to do it server side ?
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 602 М.
Build a productivity web app that's NOT a todo list
18:55
Learn With Jason
Рет қаралды 50 М.
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 14 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Adding Search Feature in Server Components | NextJs 13
22:25
Hamed Bahram
Рет қаралды 19 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 182 М.
React Search Filter Tutorial Beginner to Advanced
26:50
Lama Dev
Рет қаралды 259 М.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 333 М.
Build any layout with tailwind | crash course
34:28
Hitesh Choudhary
Рет қаралды 61 М.
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 14 МЛН