
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
      <title>Duncan Leung</title>
      <link>https://www.duncanleung.com/blog</link>
      <description>📚 Learning, 👨🏻‍💻 Building, 📝 Documenting...</description>
      <language>en-us</language>
      <managingEditor>duncan@leungs.email (Duncan Leung)</managingEditor>
      <webMaster>duncan@leungs.email (Duncan Leung)</webMaster>
      <lastBuildDate>Sat, 15 Jul 2017 00:00:00 GMT</lastBuildDate>
      <atom:link href="https://www.duncanleung.com/tags/react/feed.xml" rel="self" type="application/rss+xml"/>
      
  <item>
    <guid>https://www.duncanleung.com/blog/avoiding-react-setstate-pitfalls</guid>
    <title>Avoiding React setState() Pitfalls</title>
    <link>https://www.duncanleung.com/blog/avoiding-react-setstate-pitfalls</link>
    <description>A guide to avoiding common pitfalls when using setState in React, including asynchronous updates, batching, and state management patterns.</description>
    <pubDate>Sat, 15 Jul 2017 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/webpack-build-react-production-windows</guid>
    <title>webpack: Building React For Production on Windows</title>
    <link>https://www.duncanleung.com/blog/webpack-build-react-production-windows</link>
    <description>A guide to configuring Webpack for building optimized React production bundles on Windows, including environment-specific settings and common pitfalls.</description>
    <pubDate>Mon, 31 Jul 2017 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category><category>webpack</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/react-pure-render-this-binding-patterns</guid>
    <title>Pure render() &#39;this&#39; Binding Patterns in React</title>
    <link>https://www.duncanleung.com/blog/react-pure-render-this-binding-patterns</link>
    <description>A deep dive into React pure render optimization and method binding patterns, exploring different approaches for improving component performance.</description>
    <pubDate>Wed, 02 Aug 2017 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category><category>performance</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/fixing-react-warning-synthetic-events-in-setstate</guid>
    <title>Fixing React Warning: Synthetic Events in setState()</title>
    <link>https://www.duncanleung.com/blog/fixing-react-warning-synthetic-events-in-setstate</link>
    <description>Understand and resolve React synthetic event warnings in setState, with best practices for event handling and state updates.</description>
    <pubDate>Mon, 14 Aug 2017 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/react-state-rerender-useeffect</guid>
    <title>Understanding useEffect: Each Render Has Its Own Props, State, and Effects</title>
    <link>https://www.duncanleung.com/blog/react-state-rerender-useeffect</link>
    <description>A mental model for useEffect — moving past the lifecycle (mount/update/unmount) mindset to thinking about effects as a way to synchronize side effects with React state and props.</description>
    <pubDate>Tue, 05 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category><category>hooks</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/accessing-material-ui-theme-object-emotion-styled-component-css-prop</guid>
    <title>Accessing Material UI Theme Object in Emotion JS</title>
    <link>https://www.duncanleung.com/blog/accessing-material-ui-theme-object-emotion-styled-component-css-prop</link>
    <description>A guide to access and utilize Material-UI theme objects within Emotion styled components and CSS props, with practical implementation examples.</description>
    <pubDate>Thu, 22 Oct 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category><category>material-ui</category><category>emotion</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/image-scrolling-loading</guid>
    <title>Tackling &#39;on load&#39; Scrolling in Chat Applications</title>
    <link>https://www.duncanleung.com/blog/image-scrolling-loading</link>
    <description>How to solve one of the most frustrating UX issues in chat applications: ensuring automatic scrolling works correctly when images load asynchronously.</description>
    <pubDate>Tue, 16 Apr 2024 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category><category>DOM</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/useref-resize-observer-react-dynamic-measurements</guid>
    <title>Why useRef Doesn&#39;t Work for Dynamic Element Measurements</title>
    <link>https://www.duncanleung.com/blog/useref-resize-observer-react-dynamic-measurements</link>
    <description>Why useRef alone is insufficient for dynamic measurements, and how to combine it with ResizeObserver and useState for responsive UI.</description>
    <pubDate>Tue, 16 Apr 2024 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>react</category><category>DOM</category>
  </item>

    </channel>
  </rss>
