<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gal Margalit on Medium]]></title>
        <description><![CDATA[Stories by Gal Margalit on Medium]]></description>
        <link>https://medium.com/@galmargalit?source=rss-e0cf09ddfab1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5QSWHXv-9dVwNTHjjMnmPQ.jpeg</url>
            <title>Stories by Gal Margalit on Medium</title>
            <link>https://medium.com/@galmargalit?source=rss-e0cf09ddfab1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 23:39:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@galmargalit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[⚛ React Hooks: Lifecycle Diagram]]></title>
            <link>https://medium.com/@galmargalit/react-function-components-hooks-lifecycle-diagram-14f76e0a5988?source=rss-e0cf09ddfab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/14f76e0a5988</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[hooks]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[lifecycle]]></category>
            <dc:creator><![CDATA[Gal Margalit]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 18:14:56 GMT</pubDate>
            <atom:updated>2022-02-28T10:42:36.791Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVVQeSSX6xy6vvXLFlP5Lw.png" /></figure><h3><strong><em>Function Components Lifecycle Visualised</em></strong></h3><h3><strong>⚛️🪝</strong>⌛</h3><p><strong>Introduction and Motivation<br></strong>Following Dan Abramov’s diagram <a href="https://twitter.com/dan_abramov/status/981712092611989509">tweet </a>(and its React <a href="http://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/">implementation</a>) about the lifecycle of the now “old” 👴 Class Components, I wanted to have a diagram exactly like that but for <strong>Hooks </strong>— so … <br>I made one! using draw.io and Dan’s style for familiarity.</p><p><strong>React Hooks Diagram<br></strong>You could find the interactive diagram and source code on my GitHub.<br>All of the latest React versions are supported.</p><ul><li><a href="https://wavez.github.io/react-hooks-lifecycle/"><strong>Diagram 🌐</strong></a></li><li><a href="https://github.com/Wavez/react-hooks-lifecycle"><strong>Source code 👨‍💻</strong></a></li></ul><p><a href="https://github.com/Wavez/react-hooks-lifecycle">Wavez/react-hooks-lifecycle</a></p><figure><a href="https://wavez.github.io/react-hooks-lifecycle/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jAViMR_YHf5dMVmhrpVKLA.jpeg" /></a><figcaption>Diagram Screenshot</figcaption></figure><p><strong>I maintain and update the diagram regularly, so be sure to catch up when React will introduce more new hooks 🥳 as they intend ;</strong></p><blockquote>From the official React documentation 💬 :<br>“<a href="https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes">There are no Hook equivalents to the uncommon </a><a href="https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes">getSnapshotBeforeUpdate and </a><a href="https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes">componentDidCatch lifecycles yet, <strong>but we plan to add them soon</strong>.</a>”</blockquote><p>I hope it’ll make the migration to the <strong>new React features </strong>easier.<br>Feel free to comment, contribute and use the diagram 💖.</p><p>Feel welcome to reach out and say Hi 👋 or visit any of my socials:<br><a href="https://twitter.com/MargalitGal"><strong>Twitter</strong></a><strong> | </strong><a href="https://github.com/Wavez"><strong>GitHub</strong></a><strong> | </strong><a href="https://stackoverflow.com/users/1582030/gal-margalit?tab=profile"><strong>StackOverflow</strong></a></p><figure><img alt="Clap" src="https://cdn-images-1.medium.com/max/345/1*UcrcRXbJ0Oday4QyX9AzYQ.gif" /><figcaption><strong>If you liked this post 👏 SMASH 👏 that clap button below. </strong>(Image by <a href="https://medium.com/hackernoon/how-i-implemented-the-medium-clap-from-scratch-4a16ac90ad3b">Yonatan Doron</a>)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14f76e0a5988" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>