<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Custom Hooks on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/custom-hooks/</link><description>Recent content in Custom Hooks on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 31 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/custom-hooks/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 11: useRef, useReducer, and Other Essential Hooks</title><link>https://ai-blog.noorshomelab.dev/react-mastery-2026/chapter-11-useref-usereducer-and-other-hooks/</link><pubDate>Sat, 31 Jan 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/react-mastery-2026/chapter-11-useref-usereducer-and-other-hooks/</guid><description>&lt;h2 id="chapter-11-useref-usereducer-and-other-essential-hooks"&gt;Chapter 11: useRef, useReducer, and Other Essential Hooks&lt;/h2&gt;
&lt;p&gt;Welcome back, future React pro! In our previous chapters, you mastered the foundational &lt;code&gt;useState&lt;/code&gt; for managing simple component state and &lt;code&gt;useEffect&lt;/code&gt; for handling side effects. You&amp;rsquo;ve built interactive components and started to see the power of React&amp;rsquo;s declarative approach.&lt;/p&gt;
&lt;p&gt;But what happens when your state logic gets a bit more involved, or when you need to interact with the raw DOM, or even when you start noticing performance hiccups in larger applications? That&amp;rsquo;s where a deeper dive into React&amp;rsquo;s essential hooks comes in!&lt;/p&gt;</description></item><item><title>Chapter 12: Custom Hooks: Reusing Logic Across Components</title><link>https://ai-blog.noorshomelab.dev/react-mastery-2026/chapter-12-custom-hooks-reusing-logic/</link><pubDate>Sat, 31 Jan 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/react-mastery-2026/chapter-12-custom-hooks-reusing-logic/</guid><description>&lt;h2 id="chapter-12-custom-hooks-reusing-logic-across-components"&gt;Chapter 12: Custom Hooks: Reusing Logic Across Components&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid React developer! In previous chapters, we&amp;rsquo;ve explored the fundamental built-in Hooks like &lt;code&gt;useState&lt;/code&gt; and &lt;code&gt;useEffect&lt;/code&gt;, which revolutionized how we manage state and side effects in functional components. You&amp;rsquo;ve seen how powerful they are for managing component-specific logic.&lt;/p&gt;
&lt;p&gt;But what happens when you find yourself writing the &lt;em&gt;same&lt;/em&gt; &lt;code&gt;useState&lt;/code&gt; and &lt;code&gt;useEffect&lt;/code&gt; logic in multiple components? Perhaps you have several components that all need to fetch data from a similar API endpoint, or they all need to manage a toggle state with similar side effects. Copy-pasting code is a common anti-pattern that leads to &amp;ldquo;boilerplate&amp;rdquo; and makes your application harder to maintain.&lt;/p&gt;</description></item></channel></rss>