<?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: Mukesh </title>
    <description>The latest articles on DEV Community by Mukesh  (@mukesh_tech_46).</description>
    <link>https://dev.to/mukesh_tech_46</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%2F4117902%2F533e39b9-2f2b-4062-8d4e-c275abae535b.png</url>
      <title>DEV Community: Mukesh </title>
      <link>https://dev.to/mukesh_tech_46</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mukesh_tech_46"/>
    <language>en</language>
    <item>
      <title>Custom hooks in react</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Tue, 24 Nov 2026 07:32:21 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/custom-hooks-in-react-45c5</link>
      <guid>https://dev.to/mukesh_tech_46/custom-hooks-in-react-45c5</guid>
      <description>&lt;p&gt;Custom hooks are js function that allows us to reuse the stateful logic between multiple component.&lt;/p&gt;

&lt;p&gt;ex:&lt;/p&gt;

&lt;p&gt;If you want to write a same logic in multiple components, here comes custom hooks you write those logic into a single component and export it , its acts as a hook you just import into another component .&lt;/p&gt;

&lt;p&gt;syntax:&lt;br&gt;
function usemyhook{&lt;/p&gt;

&lt;p&gt;return{}&lt;br&gt;
}&lt;br&gt;
export default usemyhook&lt;/p&gt;

&lt;p&gt;The component name must start with use.&lt;/p&gt;

&lt;p&gt;A custom hook must return anything what you specified in the return statement.Everything else remains local to that custom hook.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>List in python</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:09:06 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/list-in-python-45cp</link>
      <guid>https://dev.to/mukesh_tech_46/list-in-python-45cp</guid>
      <description>&lt;p&gt;In python ,list is a ordered collection of multiple data types items stored in a single variable.&lt;/p&gt;

&lt;p&gt;List also allows duplicate values and it is mutable.&lt;/p&gt;

&lt;p&gt;Lists are written with square brackets [], and elements are accessed by their index starting at 0.&lt;/p&gt;

&lt;p&gt;syntax:&lt;/p&gt;

&lt;p&gt;fruits = ["apple", "banana", "cherry"]&lt;br&gt;
mixed = [1, "hello", True, [2, 3]]&lt;/p&gt;

&lt;p&gt;fruits, mixed are variable name.&lt;br&gt;
[]-values are stored into the variable &lt;/p&gt;

&lt;p&gt;How to print those values&lt;/p&gt;

&lt;p&gt;To print the whole list use -print(fruits)&lt;/p&gt;

&lt;p&gt;To print the exact required value -print(mixed[3][1]), those [] refers to the index position of the values.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>useRef Hook in React</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:30:33 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/useref-hook-in-react-2f1d</link>
      <guid>https://dev.to/mukesh_tech_46/useref-hook-in-react-2f1d</guid>
      <description>&lt;p&gt;If you want to store or update value without rendering the component then useRef is the best solution.&lt;/p&gt;

&lt;p&gt;It is also commonly used to access DOM elements like input field, buttons and other html elements.&lt;/p&gt;

&lt;p&gt;Syntax:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const myRef = useRef(initialValue);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;useRef is a React hook&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;myRef is a reference variable&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;initialValue is a initial vaue&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How does useRef work?&lt;/p&gt;

&lt;p&gt;When you call useRef(), React creates a reference object with a property called current.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;const myRef = useRef(10);&lt;br&gt;
console.log(myRef);&lt;/p&gt;

&lt;p&gt;Here, myRef is an object, and current is its property.&lt;/p&gt;

&lt;p&gt;You can access the value using:&lt;br&gt;
console.log(myRef.current);&lt;/p&gt;

&lt;p&gt;Store a Value Without Re-rendering&lt;/p&gt;

&lt;p&gt;Let's see how useRef stores and updates values without re-rendering the component.&lt;/p&gt;

&lt;p&gt;import React, { useRef } from 'react';&lt;br&gt;
function App() {&lt;br&gt;
    const count = useRef(0);&lt;br&gt;
    function Increase() {&lt;br&gt;
        count.current++;&lt;br&gt;
        console.log(count.current);&lt;br&gt;
    }&lt;br&gt;
    return (&lt;br&gt;
        &lt;/p&gt;
&lt;br&gt;
            &lt;h1&gt;{count.current}&lt;/h1&gt;
&lt;br&gt;
            &lt;br&gt;
                Increase&lt;br&gt;
            &lt;br&gt;
        &lt;br&gt;
    );&lt;br&gt;
}

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

&lt;p&gt;Explanation&lt;/p&gt;

&lt;p&gt;Initially, the count value is 0.&lt;/p&gt;

&lt;p&gt;When we click the button, count.current increases by one.&lt;/p&gt;

&lt;p&gt;The updated value is displayed in the console.&lt;/p&gt;

&lt;p&gt;However, the heading does not update because changing current does no&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>javascript</category>
      <category>react</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Is useEffect() really usefull ???</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Mon, 16 Nov 2026 17:48:49 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/is-useeffect-is-usefull--4g95</link>
      <guid>https://dev.to/mukesh_tech_46/is-useeffect-is-usefull--4g95</guid>
      <description>&lt;p&gt;useEffect is a react hook used to handle sideeffect in functional component.It allows us to execute code after rendering based on the dependency array.&lt;/p&gt;

&lt;p&gt;Syntax of useeffect()&lt;/p&gt;

&lt;p&gt;import React, { useEffect } from 'react';&lt;/p&gt;

&lt;p&gt;useEffect(() =&amp;gt; {&lt;br&gt;
    // Side effect code&lt;/p&gt;

&lt;p&gt;}, []);&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Callback function: Contains the code that should execute.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dependency array: Determines when the effect should execute again.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are 3 common ways to use useEffect, based on the dependency array.&lt;br&gt;
Type 1-Without dependency array&lt;/p&gt;

&lt;p&gt;ex:-useEffect(() =&amp;gt; {&lt;br&gt;
    console.log("Hello");&lt;br&gt;
});&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Executes after every render.&lt;/li&gt;
&lt;li&gt;Whenever state changes and the component renders again, it executes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Type 2-With empty dependency array []&lt;/p&gt;

&lt;p&gt;ex:-useEffect(() =&amp;gt; {&lt;br&gt;
    console.log("Hello");&lt;br&gt;
}, []);&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Executes after the initial render.&lt;/li&gt;
&lt;li&gt;Does not execute again on normal re-renders.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Type 3-With dependency array [count]&lt;/p&gt;

&lt;p&gt;ex:-useEffect(() =&amp;gt; {&lt;br&gt;
    console.log("Count changed");&lt;br&gt;
}, [count]);&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Executes after the initial render.&lt;/li&gt;
&lt;li&gt;Executes again whenever count changes.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>react</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Simple logic problem</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Mon, 16 Nov 2026 17:26:58 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/simple-logic-problem-4h0j</link>
      <guid>https://dev.to/mukesh_tech_46/simple-logic-problem-4h0j</guid>
      <description>&lt;p&gt;1) Chocolate Wrapper Problem&lt;br&gt;
You have Rs. 100 /- One chocolate costs Rs. 5.  Every time you buy a chocolate, you get one wrapper.  You can exchange 3 wrappers for 1 additional chocolate.  What is the maximum number of chocolates you can have with Rs. 100?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ANS&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;rs=100&lt;br&gt;
chocolate=rs//5&lt;br&gt;
wraper=3&lt;br&gt;
subwrap=chocolate&lt;br&gt;
while subwrap&amp;gt;=wraper:&lt;br&gt;
    newchoco=subwrap//wraper&lt;br&gt;
    chocolate+=newchoco&lt;br&gt;
    subwrap=newchoco+(subwrap%wraper)&lt;/p&gt;

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

&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;Line 1 : You have a total rs of 100&lt;br&gt;
Line 2 : Per chocolate cost rs=5 so that you can buy 20 chocolate by dividing 100 by 5 and uses // to get a whole number without a decimal value.&lt;br&gt;
Line 3 : In exchange of 3 Wrapper you can get a chocolate&lt;br&gt;
Line 4 : so if we buy some amount like 20 chocolate we assign that to subwrap variable to further processing&lt;br&gt;
Line 5: while subwrap&amp;gt;=wraper: starts a loop that keeps running as long as you have at least 3 wrappers available to exchange.&lt;br&gt;
Line 6: newchoco=subwrap//wraper calculates how many new whole chocolates you can get by dividing your current wrappers by 3.&lt;br&gt;
Line 7: chocolate+=newchoco adds those newly earned chocolates to your total chocolate count.&lt;br&gt;
Line 8: subwrap=newchoco+(subwrap%wraper) updates your wrapper count by adding the new wrappers from the fresh chocolates to any leftover wrappers that could not be traded.&lt;br&gt;
Line 9: print(chocolate) displays the final number of chocolates you collected once you have fewer than 3 wrappers left.&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
    </item>
    <item>
      <title>Rules in python..</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Sat, 14 Nov 2026 08:38:28 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/rules-in-python-41og</link>
      <guid>https://dev.to/mukesh_tech_46/rules-in-python-41og</guid>
      <description>&lt;p&gt;In Python, code structure and logic rely on strict indentation, capitalization, and loop control rules. Breaking any of these rules causes syntax errors or infinite loops.&lt;/p&gt;

&lt;p&gt;Indentation rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Any line ending with a colon (:), such as while or if, tells Python that a new block of code is starting on the next line.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every line inside that block must be indented by 4 spaces (or one Tab key).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If those lines are belongs to that block it should be allinged in vertically&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you want to end the block move the line to left side then it will be ended&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Capitalization rule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Python treats uppercase and lowercase letters as completely different things.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keywords for truth values must always start with a capital letter, so you must write True and False instead of true or false.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Control words like while, if, and, break, and print must always be completely lowercase.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Loop and condition rule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A while loop only runs its code block if the condition next to it evaluates to True. Using while True: forces the loop to run continuously until stopped.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Lets learn python</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Fri, 13 Nov 2026 18:03:30 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/lets-learn-python-186h</link>
      <guid>https://dev.to/mukesh_tech_46/lets-learn-python-186h</guid>
      <description>&lt;p&gt;Python is a high-level, general-purpose, interpreted programming language.&lt;/p&gt;

&lt;p&gt;It is widely used because its syntax is simple, readable, and beginner-friendly.&lt;/p&gt;

&lt;p&gt;Python was created by Guido van Rossum and first released in 1991.&lt;/p&gt;

&lt;p&gt;Python used in various field &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data analytics&lt;/li&gt;
&lt;li&gt;AI and machine learning&lt;/li&gt;
&lt;li&gt;Web development&lt;/li&gt;
&lt;li&gt;Cyber security&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>One of the amazing react feature!!</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:53:45 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/one-of-the-amazing-react-feature-14f1</link>
      <guid>https://dev.to/mukesh_tech_46/one-of-the-amazing-react-feature-14f1</guid>
      <description>&lt;p&gt;Context API is a react feature used to share data between multiple components without using props methods.&lt;/p&gt;

&lt;p&gt;By using props method here comes the issue named props drilling ,shows that the same data have pass through each component, if some components doesn't need that data but also have access of it.&lt;/p&gt;

&lt;p&gt;So to avoid this we using context &lt;/p&gt;

&lt;p&gt;How Context API works&lt;br&gt;
Context API mainly involves three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;createContext() – Creates a context.&lt;/li&gt;
&lt;li&gt;Provider – Makes data available to child components.&lt;/li&gt;
&lt;li&gt;useContext() – Allows components to access that data.
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>frontend</category>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Usestate in Reactjs</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Wed, 04 Nov 2026 18:53:46 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/usestate-in-reactjs-1nna</link>
      <guid>https://dev.to/mukesh_tech_46/usestate-in-reactjs-1nna</guid>
      <description>&lt;p&gt;Usestate&lt;/p&gt;

&lt;p&gt;UseState is one of the React Hooks used to manage state in a component.&lt;/p&gt;

&lt;p&gt;Normally, when we use a local variable, changing its value does not trigger a re-render of the component.&lt;/p&gt;

&lt;p&gt;But useState allows us to store a value and update the UI whenever that value changes. &lt;/p&gt;

&lt;p&gt;Using a normal variable doesn't trigger a re-render the UI still doesn't show anything about your process by using a normal variable.&lt;/p&gt;

&lt;p&gt;To overcome this using usestate updates changes in UI everytime when the component gets re-rendered.&lt;/p&gt;

&lt;p&gt;const [stateVariable, stateFunction] = useState(0);&lt;/p&gt;

&lt;p&gt;Statevariable -It stored the current state value.&lt;/p&gt;

&lt;p&gt;StateFunction - It is a setterfunction used to update the current state value. When called, it tells React to re-render the component so the UI can reflect the updated state.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Rendering workflow of react application</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Wed, 04 Nov 2026 18:35:12 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/rendering-workflow-of-react-application-dfi</link>
      <guid>https://dev.to/mukesh_tech_46/rendering-workflow-of-react-application-dfi</guid>
      <description>&lt;p&gt;Components: A React application contains multiple components. Each component returns JSX.&lt;/p&gt;

&lt;p&gt;Component composition: These components can be imported and used inside another component, such as App.jsx.&lt;/p&gt;

&lt;p&gt;App.jsx: The App component combines all the required components and returns the overall JSX structure.&lt;/p&gt;

&lt;p&gt;main.jsx: The main.jsx file imports the App component and renders it using React DOM.&lt;/p&gt;

&lt;p&gt;index.html: The index.html file contains a root element where React mounts the application.&lt;/p&gt;

&lt;p&gt;Browser UI: React creates and updates the DOM, and the browser displays the final UI.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Rendering workflow of react application</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Tue, 03 Nov 2026 18:00:33 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/rendering-workflow-of-react-application-471g</link>
      <guid>https://dev.to/mukesh_tech_46/rendering-workflow-of-react-application-471g</guid>
      <description>&lt;p&gt;Components: A React application contains multiple components. Each component returns JSX.&lt;/p&gt;

&lt;p&gt;Component composition: These components can be imported and used inside another component, such as App.jsx.&lt;/p&gt;

&lt;p&gt;App.jsx: The App component combines all the required components and returns the overall JSX structure.&lt;/p&gt;

&lt;p&gt;main.jsx: The main.jsx file imports the App component and renders it using React DOM.&lt;/p&gt;

&lt;p&gt;index.html: The index.html file contains a root element where React mounts the application.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiux6lsmv9wo6uta0ae1s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiux6lsmv9wo6uta0ae1s.png" alt=" " width="800" height="744"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Browser UI: React creates and updates the DOM, and the browser displays the final UI.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>api</category>
    </item>
    <item>
      <title>Why filter() method in js is amazing and essential.</title>
      <dc:creator>Mukesh </dc:creator>
      <pubDate>Tue, 06 Oct 2026 17:07:04 +0000</pubDate>
      <link>https://dev.to/mukesh_tech_46/why-filter-method-in-js-is-amazing-and-essential-1fp5</link>
      <guid>https://dev.to/mukesh_tech_46/why-filter-method-in-js-is-amazing-and-essential-1fp5</guid>
      <description>&lt;p&gt;Filter() in js is a method that we used when we want to extract some element based on the condition , it stores those value in a new array.&lt;/p&gt;

&lt;p&gt;Important point is that we sent function as an argument in a filter(function) method.&lt;/p&gt;

&lt;p&gt;This type is called callbyfunction method. &lt;/p&gt;

&lt;p&gt;It replaces bulky for loops into single, expressive line of codes.&lt;/p&gt;

&lt;p&gt;True stays, False goes: If the test function returns true (or a truthy value) for an item, that item is pushed into the new array. If it returns false, the item is skipped. &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
    </item>
  </channel>
</rss>
