default page with Navigate vs default page with index route
Library version: react-router-dom v6
default page with Navigate vs default page with index route
Library version: react-router-dom v6
Am I an idiot or react-router-dom doesnt have proper documentation for useSearchParams at all?
useSearchParams has defaultInit, I know it for sure, it is listed in type declaration.
And I am trying to find the proper clear documentation of it’s behavior here
https://reactrouter.com/en/main/hooks/use-search-params
How can I pass state when calling navigate(-1) with react-router-dom
If I do something like this in an onClick handler: