ava / use-http

🐶 React hook for making isomorphic http requests
https://use-http.com
MIT License
2.31k stars 114 forks source link

Add generic type in request methods #358

Open shubham-sri opened 2 years ago

shubham-sri commented 2 years ago

Developer can initialize the useFetch instance once and call get, post, put method with different response payloads passing generic type if needed. This will help the developer to maintain clean code and tightly type couple.