Have you ever had to deal with complicated query parameters while using GET API calls?
Introducing URLSearchParams, a JavaScript interface that m...
For further actions, you may consider blocking this person and/or reporting abuse
Nice post! I've written a simple package to handle URLSearchParams with full type-safety called
@search-params/react-> github.com/iamhectorsosa/search-pa....Check it out and let me know what you think. If you find it useful, I'd appreciate a star on GitHub
Thanks Hector!!
I suppose the keys and values are URL encoded? This is nice. I had no idea this existed. Had I known, I would have used it in wj-config.
I would encourage you to read more about it on MDN. Even, I recently discovered this and thought of sharing with the community in a plain language.
Nice post! It helped me a lot.