You need to define the types for the props and state and then put them instead of the {}.
It's not clear where you want to get the "URL query params", so I'll just take them from the window.location object: