Current section: Custom Hooks 36 exercises
Problem

Hook Function

Loading exercise

Transcript

00:00 So, your job is to make a reusable useSearchParams hook so that we can have the search params and setSearchParams. There's going to be a problem with what things look like when you're done. It actually is going to be pretty quick. There's not a whole lot of lines of code you need to change.

00:18 But it's not going to be perfect, so if you spot any bugs, just know that that is not perfect. We're going to perfect it in the next step. So, just create the useSearchParams hook, use that useSearchParams hook in the app, and then we'll move on from there.