I need to get parameters in a hooks component, what\'s the cleanest way without using react-routes? Is windows.location.search enough? How to use it in a clean way with hooks?