<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SATHISHKUMAR R</title>
    <description>The latest articles on DEV Community by SATHISHKUMAR R (@sathishkumar_0506).</description>
    <link>https://dev.to/sathishkumar_0506</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4127206%2F0ee8ffc3-8c92-4db0-b93f-2a7097519fc9.jpeg</url>
      <title>DEV Community: SATHISHKUMAR R</title>
      <link>https://dev.to/sathishkumar_0506</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sathishkumar_0506"/>
    <language>en</language>
    <item>
      <title>What is React Query?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Tue, 01 Dec 2026 15:17:14 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-react-query-14f5</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-react-query-14f5</guid>
      <description>&lt;p&gt;React Query (now called TanStack Query) is a library in React used to fetch, manage, cache, and update server data.&lt;/p&gt;

&lt;p&gt;It makes API data handling easier without writing too much code using useEffect and useState.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Why do we use React Query?&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Fetch data from APIs.&lt;/li&gt;
&lt;li&gt;Store API responses in cache.&lt;/li&gt;
&lt;li&gt;Automatically refetch data when needed.&lt;/li&gt;
&lt;li&gt;Manage loading and error states.&lt;/li&gt;
&lt;li&gt;Update server data (POST, PUT, DELETE).&lt;/li&gt;
&lt;li&gt;Reduce unnecessary API calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;How to install React Query?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Open your VS Code terminal:&lt;br&gt;
npm install @tanstack/react-query&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Basic React Query Example:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 1: Import and configure QueryClient&lt;/p&gt;

&lt;p&gt;import { QueryClient, QueryClientProvider } from '@tanstack/react-query';&lt;/p&gt;

&lt;p&gt;const queryClient = new QueryClient();&lt;/p&gt;

&lt;p&gt;function App() {&lt;br&gt;
  return (&lt;br&gt;
    &lt;br&gt;
      &lt;br&gt;
    &lt;br&gt;
  );&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;export default App;&lt;/p&gt;

&lt;p&gt;Step 2: Fetch API data using useQuery:&lt;/p&gt;

&lt;p&gt;import { useQuery } from '@tanstack/react-query';&lt;/p&gt;

&lt;p&gt;function Users() {&lt;/p&gt;

&lt;p&gt;const { data, isLoading, error } = useQuery({&lt;br&gt;
    queryKey: ['users'],&lt;br&gt;
    queryFn: async () =&amp;gt; {&lt;br&gt;
      const response = await fetch(&lt;br&gt;
        '&lt;a href="https://jsonplaceholder.typicode.com/users" rel="noopener noreferrer"&gt;https://jsonplaceholder.typicode.com/users&lt;/a&gt;'&lt;br&gt;
      );&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  if (!response.ok) {
    throw new Error('Failed to fetch users');
  }

  return response.json();
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;});&lt;/p&gt;

&lt;p&gt;if (isLoading) return &lt;/p&gt;
&lt;h2&gt;Loading...&lt;/h2&gt;;

&lt;p&gt;if (error) return &lt;/p&gt;
&lt;h2&gt;Error: {error.message}&lt;/h2&gt;;

&lt;p&gt;return (&lt;br&gt;
    &lt;/p&gt;
&lt;br&gt;
      &lt;h2&gt;User List&lt;/h2&gt;


&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  {data.map((user) =&amp;gt; (
    &amp;lt;p key={user.id}&amp;gt;{user.name}&amp;lt;/p&amp;gt;
  ))}
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;export default Users;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Important React Query Concepts:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Concept                   Purpose&lt;br&gt;
useQuery          Fetch API data&lt;br&gt;
useMutation    Create, update or delete data&lt;br&gt;
useQueryClient     Access and manage query cache&lt;br&gt;
queryKey       Uniquely identify a query&lt;br&gt;
queryFn        Function that fetches data&lt;br&gt;
staleTime      How long data is considered fresh&lt;br&gt;
gcTime             How long inactive cached data is retained&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>ai</category>
      <category>react</category>
    </item>
    <item>
      <title>What is Tuple in Python?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Tue, 01 Dec 2026 15:10:54 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-tuple-in-python-4m0</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-tuple-in-python-4m0</guid>
      <description>&lt;p&gt;A Tuple in Python is a collection of elements that is ordered and immutable (we cannot change its elements after creation).&lt;/p&gt;

&lt;p&gt;We create a tuple using round brackets ().&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Example of Tuple:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;numbers = (10, 20, 30, 40, 50)&lt;br&gt;
print(numbers)&lt;br&gt;
print(numbers[0])&lt;br&gt;
print(numbers[2])&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
(10, 20, 30, 40, 50)&lt;br&gt;
10&lt;br&gt;
30&lt;/p&gt;

&lt;p&gt;Here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;numbers[0] returns 10.&lt;/li&gt;
&lt;li&gt;numbers[2] returns 30.&lt;/li&gt;
&lt;li&gt;Tuple supports indexing.&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Important Characteristics of Tuple:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ordered collection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allows duplicate values.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Immutable (cannot change elements).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Supports indexing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allows different data types.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Faster for some operations than lists.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tuple Methods:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Python has two main built-in tuple methods:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;count() – Counts how many times an element appears.
numbers = (10, 20, 10, 30, 10)
print(numbers.count(10))&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Output:&lt;br&gt;
3&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;index() – Returns the index of an element's first occurrence.
numbers = (10, 20, 30, 40)
print(numbers.index(30))&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Output:&lt;br&gt;
2&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Can we modify a Tuple?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No. We cannot directly add, remove, or update tuple elements.&lt;br&gt;
numbers = (10, 20, 30)&lt;br&gt;
numbers[0] = 100&lt;br&gt;
print(numbers)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
TypeError&lt;/p&gt;

&lt;p&gt;Because tuples are immutable.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Difference Between List, Tuple and Set:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Feature     List    Tuple   Set&lt;br&gt;
Symbols     &lt;a href=""&gt;&lt;/a&gt;  {}&lt;br&gt;
Ordered         Yes Yes No&lt;br&gt;
Duplicates  Yes Yes No&lt;br&gt;
Mutable     Yes No  Yes&lt;br&gt;
Indexing    Yes Yes No&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>What is Set in Python?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Tue, 01 Dec 2026 15:05:03 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-set-in-python-nnf</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-set-in-python-nnf</guid>
      <description>&lt;p&gt;A Set in Python is a collection of unique elements. It does not allow duplicate values, and it is unordered.&lt;/p&gt;

&lt;p&gt;We create a set using curly braces {} or the set() function.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Example of Set:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;numbers = {10, 20, 30, 40, 10}&lt;br&gt;
print(numbers)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
{10, 20, 30, 40}&lt;/p&gt;

&lt;p&gt;Here, 10 appears only once because sets do not allow duplicate values:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Important Characteristics of Set&lt;/li&gt;
&lt;li&gt;Does not allow duplicate values.&lt;/li&gt;
&lt;li&gt;Unordered collection.&lt;/li&gt;
&lt;li&gt;Mutable (we can add or remove elements).&lt;/li&gt;
&lt;li&gt;Does not support indexing.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Can store different data types.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set Methods:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;numbers = {10, 20, 30}&lt;br&gt;
numbers.add(40)&lt;br&gt;
numbers.remove(20)&lt;br&gt;
numbers.discard(50)&lt;br&gt;
print(numbers)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
{10, 30, 40}&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>What is SEO?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Tue, 01 Dec 2026 14:47:59 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-seo-2pme</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-seo-2pme</guid>
      <description>&lt;p&gt;SEO stands for Search Engine Optimization.&lt;/p&gt;

&lt;p&gt;SEO is the process of improving a website so that it appears higher in search engine results, such as Google, and attracts more visitors without paying for advertisements.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;Suppose you create an online shopping website called SmartStore.&lt;/p&gt;

&lt;p&gt;When someone searches Google for "Best online shopping website", SEO helps your website appear higher in the search results.&lt;/p&gt;

&lt;p&gt;Types of SEO:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;On-Page SEO: Optimizing website content, titles, images, headings and keywords.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Off-Page SEO: Improving website reputation through backlinks and external promotions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Technical SEO: Improving website speed, mobile friendliness, security and crawling.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Local SEO: Helping businesses appear in local Google searches.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Advantages of SEO:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Increases website traffic.&lt;/li&gt;
&lt;li&gt;Improves Google search rankings.&lt;/li&gt;
&lt;li&gt;Builds website credibility.&lt;/li&gt;
&lt;li&gt;Helps attract more customers.&lt;/li&gt;
&lt;li&gt;Increases online visibility.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>seo</category>
      <category>digitalmarketing</category>
      <category>ai</category>
    </item>
    <item>
      <title>Whats is Append vs Extend in python?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:51:33 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/whats-is-append-vs-extend-in-python-2p0m</link>
      <guid>https://dev.to/sathishkumar_0506/whats-is-append-vs-extend-in-python-2p0m</guid>
      <description>&lt;p&gt;1.append() in Python:&lt;/p&gt;

&lt;p&gt;append() adds one element to the end of a list.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;fruits = ["Apple", "Banana"]fruits.append("Orange")print(fruits)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
['Apple', 'Banana', 'Orange']&lt;/p&gt;

&lt;p&gt;Even if you add multiple values inside a list, append() treats them as one element.&lt;/p&gt;

&lt;p&gt;numbers = [1, 2, 3&lt;br&gt;
]numbers.append([4, 5])&lt;br&gt;
print(numbers)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
[1, 2, 3, [4, 5]]&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;extend() in Python:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;extend() adds multiple elements individually to the end of a list.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;fruits = ["Apple", "Banana"]&lt;/p&gt;

&lt;p&gt;fruits.extend(["Orange", "Mango"])&lt;/p&gt;

&lt;p&gt;print(fruits)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
['Apple', 'Banana', 'Orange', 'Mango']&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>What is Props Children in React?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:34:41 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-props-children-in-react-i0d</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-props-children-in-react-i0d</guid>
      <description>&lt;p&gt;In React, props.children is a special prop used to access the content placed between the opening and closing tags of a component.&lt;/p&gt;

&lt;p&gt;In simple words, it allows us to pass content inside a reusable component.&lt;/p&gt;

&lt;p&gt;function Welcome(props) {&lt;br&gt;
  return (&lt;br&gt;
    &lt;/p&gt;
&lt;br&gt;
      &lt;h1&gt;{props.children}&lt;/h1&gt;
&lt;br&gt;
    &lt;br&gt;
  );&lt;br&gt;
}

&lt;p&gt;function App() {&lt;br&gt;
  return (&lt;br&gt;
    &lt;br&gt;
      Hello React!&lt;br&gt;
    &lt;br&gt;
  );&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;export default App;&lt;/p&gt;

&lt;p&gt;output;&lt;br&gt;
         Hello React!&lt;/p&gt;

&lt;p&gt;Example with multiple children:&lt;/p&gt;

&lt;p&gt;function Card(props) {&lt;br&gt;
  return (&lt;br&gt;
    &lt;/p&gt;
&lt;br&gt;
      {props.children}&lt;br&gt;
    &lt;br&gt;
  );&lt;br&gt;
}

&lt;p&gt;function App() {&lt;br&gt;
  return (&lt;br&gt;
    &lt;br&gt;
      &lt;/p&gt;
&lt;h2&gt;My Profile&lt;/h2&gt;
&lt;br&gt;
      &lt;p&gt;I am learning React.&lt;/p&gt;
&lt;br&gt;
      View Profile&lt;br&gt;
    &lt;br&gt;
  );&lt;br&gt;
}

&lt;p&gt;export default App;&lt;/p&gt;

&lt;p&gt;Here, props.children receives all three elements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;h2&gt;&lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Props vs Props.children:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; Props                                 Props.children
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Used to pass data to components.    Used to pass nested content.&lt;br&gt;
Can pass name, age, etc.        Can pass text, JSX, or components.&lt;br&gt;
Access using props.name.           Access using props.children.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>frontend</category>
      <category>react</category>
    </item>
    <item>
      <title>What is CSS Modules in React? Difference between Normal CSS and CSS Modules in React?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:27:21 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-css-modules-in-react-difference-between-normal-css-and-css-modules-in-react-2pk9</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-css-modules-in-react-difference-between-normal-css-and-css-modules-in-react-2pk9</guid>
      <description>&lt;p&gt;CSS Modules is a CSS styling technique in React that allows us to write CSS for individual components.&lt;/p&gt;

&lt;p&gt;It automatically creates unique class names to avoid CSS conflicts between components.&lt;/p&gt;

&lt;p&gt;In simple words, CSS Modules prevent one component's CSS from affecting another component.&lt;/p&gt;

&lt;p&gt;import React from 'react';&lt;br&gt;
import styles from './Home.module.css';&lt;/p&gt;

&lt;p&gt;function Home() {&lt;br&gt;
  return (&lt;br&gt;
    &lt;/p&gt;
&lt;br&gt;
      &lt;h1&gt;
&lt;br&gt;
        Welcome to React&lt;br&gt;
      &lt;/h1&gt;


&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  &amp;lt;button className={styles.button}&amp;gt;
    Click Me
  &amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;export default Home;&lt;/p&gt;

&lt;p&gt;Main Advantages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Avoids CSS conflicts.&lt;/li&gt;
&lt;li&gt;Provides component-level styling.&lt;/li&gt;
&lt;li&gt;Makes code easier to maintain.&lt;/li&gt;
&lt;li&gt;Keeps styles separate for each component.&lt;/li&gt;
&lt;li&gt;Automatically generates unique class names.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Both are used to style React components, but the main difference is how CSS class names are managed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Comparison:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Normal CSS                                  CSS Modules&lt;br&gt;
Uses global class names.        Uses locally scoped class names.&lt;br&gt;
Styles can conflict.                 Prevents class name conflicts.&lt;br&gt;
Uses className="title".          Uses className={styles.title}.&lt;br&gt;
Imported as a normal CSS file.       Imported as a CSS Module file.&lt;br&gt;
File extension: .css                  File extension: .module.css&lt;/p&gt;

&lt;p&gt;Normal CSS:&lt;br&gt;
App.css&lt;/p&gt;

&lt;p&gt;import './App.css';&lt;/p&gt;

&lt;p&gt;function App() {&lt;br&gt;
  return &lt;/p&gt;
&lt;h1&gt;Hello React&lt;/h1&gt;;&lt;br&gt;
}

&lt;p&gt;export default App;&lt;/p&gt;

&lt;p&gt;CSS Modules:&lt;br&gt;
App.module.css&lt;/p&gt;

&lt;p&gt;import styles from './App.module.css';&lt;/p&gt;

&lt;p&gt;function App() {&lt;br&gt;
  return &lt;/p&gt;
&lt;h1&gt;Hello React&lt;/h1&gt;;&lt;br&gt;
}

&lt;p&gt;export default App;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>frontend</category>
      <category>react</category>
    </item>
    <item>
      <title>What is useFetch in React?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Tue, 24 Nov 2026 04:41:09 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-usefetch-in-react-2c82</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-usefetch-in-react-2c82</guid>
      <description>&lt;p&gt;useFetch is a Custom Hook in React. It is used to fetch data from an API and reuse the fetching logic in multiple components.&lt;br&gt;
useFetch is not a built-in React Hook. We create it ourselves using built-in hooks like useState and useEffect.&lt;/p&gt;

&lt;p&gt;Let's fetch user data from an API.&lt;/p&gt;

&lt;p&gt;Create useFetch.js:&lt;/p&gt;

&lt;p&gt;import { useState, useEffect } from "react";&lt;/p&gt;

&lt;p&gt;function useFetch(url) {&lt;br&gt;
    const [data, setData] = useState([]);&lt;br&gt;
    const [loading, setLoading] = useState(true);&lt;br&gt;
    const [error, setError] = useState(null);&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;useEffect(() =&amp;gt; {
    async function fetchData() {
        try {
            setLoading(true);

            const response = await fetch(url);

            if (!response.ok) {
                throw new Error("Something went wrong");
            }

            const result = await response.json();

            setData(result);
        } catch (err) {
            setError(err.message);
        } finally {
            setLoading(false);
        }
    }

    fetchData();

}, [url]);

return { data, loading, error };
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;export default useFetch;&lt;/p&gt;

&lt;p&gt;Use the Custom Hook in App.jsx:&lt;/p&gt;

&lt;p&gt;import React from "react";&lt;br&gt;
import useFetch from "./useFetch";&lt;/p&gt;

&lt;p&gt;function App() {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const { data, loading, error } =
    useFetch("https://jsonplaceholder.typicode.com/users");

if (loading) {
    return &amp;lt;h2&amp;gt;Loading...&amp;lt;/h2&amp;gt;;
}

if (error) {
    return &amp;lt;h2&amp;gt;Error: {error}&amp;lt;/h2&amp;gt;;
}

return (
    &amp;lt;div&amp;gt;
        &amp;lt;h2&amp;gt;User Details&amp;lt;/h2&amp;gt;

        {data.map((user) =&amp;gt; (
            &amp;lt;div key={user.id}&amp;gt;
                &amp;lt;h3&amp;gt;{user.name}&amp;lt;/h3&amp;gt;
                &amp;lt;p&amp;gt;{user.email}&amp;lt;/p&amp;gt;
            &amp;lt;/div&amp;gt;
        ))}
    &amp;lt;/div&amp;gt;
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;export default App;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>frontend</category>
      <category>react</category>
    </item>
    <item>
      <title>What is a Custom Hook in React?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Tue, 24 Nov 2026 04:34:32 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-a-custom-hook-in-react-4409</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-a-custom-hook-in-react-4409</guid>
      <description>&lt;p&gt;A Custom Hook is a JavaScript function that allows us to reuse stateful logic (React Hooks logic) in multiple components.&lt;/p&gt;

&lt;p&gt;Create a counter Custom Hook.&lt;/p&gt;

&lt;p&gt;import { useState } from "react";&lt;/p&gt;

&lt;p&gt;function useCounter() {&lt;br&gt;
    const [count, setCount] = useState(0);&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const increment = () =&amp;gt; {
    setCount(count + 1);
};

const decrement = () =&amp;gt; {
    setCount(count - 1);
};

return { count, increment, decrement };
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;export default useCounter;&lt;/p&gt;

&lt;p&gt;Use the Custom Hook in App.jsx:&lt;/p&gt;

&lt;p&gt;import React from "react";&lt;br&gt;
import useCounter from "./useCounter";&lt;/p&gt;

&lt;p&gt;function App() {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const { count, increment, decrement } = useCounter();

return (
    &amp;lt;div&amp;gt;
        &amp;lt;h2&amp;gt;Counter: {count}&amp;lt;/h2&amp;gt;

        &amp;lt;button onClick={increment}&amp;gt;Increment&amp;lt;/button&amp;gt;

        &amp;lt;button onClick={decrement}&amp;gt;Decrement&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;export default App;&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;useCounter()&lt;/li&gt;
&lt;li&gt;useFetch()&lt;/li&gt;
&lt;li&gt;useLocalStorage()&lt;/li&gt;
&lt;li&gt;useWindowSize()&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>frontend</category>
      <category>react</category>
    </item>
    <item>
      <title>What is List in Python?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Mon, 23 Nov 2026 15:21:36 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-list-in-python-2o1i</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-list-in-python-2o1i</guid>
      <description>&lt;p&gt;A List in Python is a data type used to store multiple items in a single variable.&lt;/p&gt;

&lt;p&gt;A list is created using square brackets [ ].&lt;/p&gt;

&lt;p&gt;Lists can store different types of data, such as strings, integers, floats, and even other lists.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Example of List:
fruits = ["Apple", "Banana", "Mango"]
print(fruits)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Output:&lt;br&gt;
['Apple', 'Banana', 'Mango']&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Different Types of Lists:&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  String listnames = ["Sathish", "Raj", "Kumar"]
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Integer listnumbers = [10, 20, 30, 40]
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Mixed listdata = ["Sathish", 25, 5.5,True]
&lt;/h1&gt;

&lt;p&gt;print(names)&lt;br&gt;
print(numbers)&lt;br&gt;
print(data)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Accessing List Items (Indexing):&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We can access list items using their index numbers.&lt;/p&gt;

&lt;p&gt;fruits = ["Apple", "Banana","Mango"]&lt;br&gt;
print(fruits[0])&lt;br&gt;
print(fruits[1])&lt;br&gt;
print(fruits[2])&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
Apple&lt;br&gt;
Banana&lt;br&gt;
Mango&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>listpython</category>
      <category>python</category>
    </item>
    <item>
      <title>Why are Strings Immutable in Python?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Mon, 23 Nov 2026 15:16:47 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/why-are-strings-immutable-in-python-50m9</link>
      <guid>https://dev.to/sathishkumar_0506/why-are-strings-immutable-in-python-50m9</guid>
      <description>&lt;p&gt;Immutable means we cannot change the original string after creating it.&lt;/p&gt;

&lt;p&gt;In Python, strings are immutable because Python does not allow us to modify individual characters of an existing string.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Example:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;name = "Python"&lt;br&gt;
name[0] = "J"&lt;br&gt;
print(name)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
TypeError: &lt;br&gt;
'str' object does not support item assignment&lt;/p&gt;

&lt;p&gt;Why?&lt;/p&gt;

&lt;p&gt;Because we are trying to change the first character of the existing string from P to J.&lt;/p&gt;

&lt;p&gt;Python does not allow this.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How can we change a string?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We cannot modify the original string, but we can create a new string.&lt;/p&gt;

&lt;p&gt;name = "Python"&lt;br&gt;
name = "J" + name[1:]&lt;br&gt;
print(name)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
Jython&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>immutable</category>
      <category>python</category>
    </item>
    <item>
      <title>What is String in Python?</title>
      <dc:creator>SATHISHKUMAR R</dc:creator>
      <pubDate>Mon, 23 Nov 2026 15:12:18 +0000</pubDate>
      <link>https://dev.to/sathishkumar_0506/what-is-string-in-python-2h5d</link>
      <guid>https://dev.to/sathishkumar_0506/what-is-string-in-python-2h5d</guid>
      <description>&lt;p&gt;A String in Python is a collection of characters (letters, numbers, symbols, or spaces) enclosed within quotes.&lt;/p&gt;

&lt;p&gt;We can use single quotes (' '), double quotes (" "), or triple quotes (''' ''').&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Example of String:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;name = "Sathish"&lt;br&gt;
city = 'Chennai'&lt;br&gt;
message = "Hello World"&lt;br&gt;
print(name)&lt;br&gt;
print(city)&lt;br&gt;
print(message)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
Sathish&lt;br&gt;
Chennai&lt;br&gt;
Hello World&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Types of String Quotes:&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Single quotesname = 'Sathish'# Double quotescity = "Chennai"# Triple quotesmessage = """Welcome to Python"""
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;String Operations:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Concatenation (Joining strings):&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;first = "Hello"&lt;br&gt;
second = "World"&lt;br&gt;
print(first + " " + second)&lt;/p&gt;

&lt;p&gt;Output: &lt;br&gt;
Hello World&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Repetition:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;name = "Hi"&lt;br&gt;
print(name * 3)&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
 Hi Hi Hi&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Length:
name = "Sathish"
print(len(name))&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Output:&lt;br&gt;
 7&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Accessing characters (Indexing):&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;name = "Python"&lt;br&gt;
print(name[0])&lt;br&gt;
print(name[1])&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
P&lt;br&gt;
y&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Important String Methods:
Method                           Purpose
upper()                     Converts to uppercase
lower()                     Converts to lowercase
capitalize()              Capitalizes first character
replace()                 Replaces characters
strip()                  Removes leading/trailing spaces
split()                   Splits a string into a list
find()                        Finds a substring&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Example:&lt;br&gt;
name = "sathish"&lt;br&gt;
print(name.upper())&lt;br&gt;
print(name.capitalize())&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
SATHISH&lt;br&gt;
Sathish&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>spring</category>
      <category>python</category>
    </item>
  </channel>
</rss>
