pbeshai / react-url-query

A library for managing state through query parameters in the URL in React
https://pbeshai.github.io/react-url-query
MIT License
195 stars 38 forks source link

Hook to get url state and onChange functions #70

Closed ghost closed 4 years ago

ghost commented 4 years ago

Do you want to request a feature or report a bug?

Feature

What is the current behavior? To get URL states and onChange function we have adUrlProps HOC.

What is the expected behavior? To get URL states and onChange function we have adUrlProps HOC, but I will prefer a hook as that will be more clean way to get state and onChange functions in functional component

Which versions of react-url-query, and which browser and OS are affected by this issue? Did this work in previous versions of react-url-query? react-query-url: 1.5.0

ghost commented 4 years ago

or is there any way I can convert adUrlProp HOC into a custom hook.

pbeshai commented 4 years ago

Please use use-query-params