This is a simple practice project inspired by others. Built using React and TypeScript
Clone the respository git clone https://github.com/nkuriam/gamespot.git and then npm run dev
Off the top of my head, the two things I think I could add to this are:
-
Infinite scrolling
-
Refactor
useQueryout into its own hook that accepts a generic type. That way I don't have to specify<FetchResponse<Type>, Error>everytime it's called 🤔
const useUseQuery = <T>(key, endpoint) => {
return useQuery<FetchResponse<T>, Error>({ ... })
}