The useParams and useSearchParams hooks from React Router are critical when working with dynamic routes, however they have some sharp edges when used with TypeScript. With a small amount of additional code, we can make it much easier to work with params.
Bits and bytes of code
Bytes is my collection of short-form posts, tips, and things I learn as I build software.