Posts
All the articles I've posted.
Migrating from useState to useReducer, Building a Counter in a Next.js App
Published: at 08:00 PM•othersIn this tutorial, we migrated from useState to useReducer while building a counter interface in a Next.js app. This helps manage state updates more efficiently and scales better as app complexity grows. Additional tips include extracting the reducer, using the Context API for global state, adding custom middleware, and exploring other hooks.
Read moreUnderstanding useRef and useState for Tracking Component Render Count in React
Published: at 08:00 PM•othersThis post explains useRef and useState usage in React by creating a custom hook to track component render count without extra re-renders. useRef stores render count while useState manages multiple state values independently, allowing efficient updates and improved code readability.
Read moreAI-driven Built-in Degradation and Enhancement in Next.js React Apps on Vercel
Published: at 08:00 PM•othersAI-driven degradation and enhancement in Next.js and Vercel empower developers to create adaptable, cost-effective web apps that seamlessly handle fluctuating loads and maintain a robust user experience.
Read moreUsing useCallback Correctly in a Simple Next.js 13 Component
Published: at 08:00 PM•othersThis post demonstrates using the useCallback hook in a Next.js 13 component for better performance. It shows how to create a simple Counter component with a button that increments the count, utilizing useCallback to avoid unnecessary re-renders.
Read moreChatGPT Problems in Coding React Apps
Published: at 08:00 PM•othersChatGPT is awesome for helping in programming, but it's not up to the task of being an expert system. It often gives poor programming advice
Read more