My fav place to learn to code is Scrimba
Get 20% off a subscription with my link 👇
https://scrimba.com/?via=brettwestwood
Adding search functionality in Next.js 14 applications is a great feature for users and their user experience.
Next.js makes adding search functionality easy to do.
Mainly with the help of three hooks that they offer. useSearchParams, usePathName & useRouter hook.
Using a mix of client and server components is how we will get this search bar completed so we can query through a database and then fetch the necessary data we need for the user in a secure way.
Time stamps
0:00 Intro
0:51 Demo of What we are making
2:35 Quick overview of the final code
5:14 Building out the search bar functionality
26:54 useDebounce Hook for Optimization
30:04 Outro