<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Class-Components on Ghafoor's Personal Blog</title><link>http://ghafoorsblog.com/tags/class-components/</link><description>Recent content in Class-Components on Ghafoor's Personal Blog</description><generator>Hugo</generator><language>en</language><managingEditor>noreply@example.com (AG Sayyed)</managingEditor><webMaster>noreply@example.com (AG Sayyed)</webMaster><copyright>Copyright © 2024-2026 AG Sayyed. All Rights Reserved.</copyright><lastBuildDate>Sat, 16 May 2026 17:42:12 +0100</lastBuildDate><atom:link href="http://ghafoorsblog.com/tags/class-components/index.xml" rel="self" type="application/rss+xml"/><item><title>Components Lifecycle</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/009-components-lifecycle/</link><pubDate>Sat, 26 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/009-components-lifecycle/</guid><description>&lt;p class="lead text-primary"&gt;
This document explores the lifecycle of React class components, covering the mounting, updating, and unmounting phases, and the key lifecycle methods available in each phase. It explains how these methods interact with the DOM and how developers can use them to control component behavior.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-component-lifecycle"&gt;Introduction to Component Lifecycle&lt;/h2&gt;
&lt;p&gt;React class components have a lifecycle, meaning they go through distinct phases during their existence. The lifecycle consists of three main phases: mounting, updating, and unmounting. Each phase provides specific lifecycle methods that allow developers to control and respond to changes in the component&amp;rsquo;s relationship with the DOM.&lt;/p&gt;</description></item><item><title>Props and Event Handling</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/007-props-and-event-handling/</link><pubDate>Sat, 26 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/007-props-and-event-handling/</guid><description>&lt;p class="lead text-primary"&gt;
This document explores how React class components use props and event handling to manage state, pass data, and respond to user interactions. It covers class component structure, state management, parent-child data flow, and practical event handling examples for building interactive UIs.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-class-components-props-and-events"&gt;Introduction to Class Components, Props, and Events&lt;/h2&gt;
&lt;p&gt;React class components are JavaScript classes that extend &lt;code&gt;React.Component&lt;/code&gt;. They encapsulate UI logic, manage state, handle lifecycle events, and define methods for user interaction. Before hooks, class components were the primary way to build complex, stateful React UIs.&lt;/p&gt;</description></item><item><title>React Component</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/006-react-component/</link><pubDate>Sat, 26 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/006-react-component/</guid><description>&lt;p class="lead text-primary"&gt;
This document explores React components, the building blocks of React applications. It covers their modular structure, features, types (functional, class, higher-order), and how they manage state, props, and events to create dynamic, reusable user interfaces.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-react-components"&gt;Introduction to React Components&lt;/h2&gt;
&lt;p&gt;React applications are built from modular chunks of code called components. Components break down complex user interfaces into individual, reusable pieces, making development and maintenance easier. Each component can be developed, tested, and managed independently, then composed into parent components to form the complete UI.&lt;/p&gt;</description></item><item><title>React States</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/008-react-states/</link><pubDate>Sat, 26 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/008-react-states/</guid><description>&lt;p class="lead text-primary"&gt;
This document explores state in React class components, including local and shared state, how state enables dynamic UI updates, and the differences between state and props. It provides practical examples and a comparison table for clear understanding.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-state-in-react"&gt;Introduction to State in React&lt;/h2&gt;
&lt;p&gt;State in React is a plain JavaScript object used to represent information about a component&amp;rsquo;s current situation. State allows components to create dynamic and interactive user interfaces by tracking and responding to changes in data.&lt;/p&gt;</description></item></channel></rss>