Yadvir Kauryadvirkaur.hashnode.dev·Feb 5, 2024The Power of Generic Hooks in React Data FetchingHello! Welcome back! In my previous post, we created a custom hook, like 'useUsers', to fetch data from a specific endpoint, say '/users'. But what if we need data from different endpoints like '/posts'? We'd end up writing similar custom hooks, intr...Discuss·44 readsgeneric hooks
Yadvir Kauryadvirkaur.hashnode.dev·Feb 1, 2024ReactJS : Building Clean Components with Custom Data Fetching HooksIntroduction Managing HTTP requests in React components presents challenges, especially regarding code cleanliness and maintainability. This article delves into the creation of clean and modular components through the utilization of custom data fetch...DiscussCustom Data Fetching Hooks