I am writing a custom hook called useRequest where it manages data fetching. The user would need to pass the type for the data that gets resolved in the promise
useRequest