<?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: gk</title>
    <description>The latest articles on DEV Community by gk (@kartheek_dev).</description>
    <link>https://dev.to/kartheek_dev</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1165782%2F0917c127-8e01-458a-b728-7e72d1faa0d9.png</url>
      <title>DEV Community: gk</title>
      <link>https://dev.to/kartheek_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kartheek_dev"/>
    <language>en</language>
    <item>
      <title>React Advance IDEA while using the ternary operator</title>
      <dc:creator>gk</dc:creator>
      <pubDate>Wed, 20 Sep 2023 14:49:20 +0000</pubDate>
      <link>https://dev.to/kartheek_dev/react-advance-idea-while-using-the-ternary-operator-ao9</link>
      <guid>https://dev.to/kartheek_dev/react-advance-idea-while-using-the-ternary-operator-ao9</guid>
      <description>&lt;p&gt;import React from 'react';&lt;/p&gt;

&lt;p&gt;function ConditionalRenderingExample({ isUserLoggedIn }) {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const Condition = isUserLoggedIn ? (
    &amp;lt;p&amp;gt;Welcome, User!&amp;lt;/p&amp;gt;
) : (
    &amp;lt;p&amp;gt;Please log in to access your account.&amp;lt;/p&amp;gt;
)
return (
    &amp;lt;div&amp;gt;
        &amp;lt;Condition /&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 ConditionalRenderingExample;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Quick Sort in DSA (JAVASCRIPT)</title>
      <dc:creator>gk</dc:creator>
      <pubDate>Wed, 20 Sep 2023 14:40:12 +0000</pubDate>
      <link>https://dev.to/kartheek_dev/quick-sort-in-dsa-javascript-3ggp</link>
      <guid>https://dev.to/kartheek_dev/quick-sort-in-dsa-javascript-3ggp</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const sort =(arr)=&amp;gt;{
    if(arr.length&amp;lt;=1){
        return arr;
    }
    let pivot = arr[0];
    let min = [];
    let max=[];
    for (let i =1;i&amp;lt;arr.length;i++){
        if(arr[i]&amp;lt;pivot){
            min.push(arr[i]);
        }
        else{
            max.push(arr[i])
        }
    }
    return [...sort(min),pivot,...sort(max)];
}
sort([1,10000,21,30,4]);
//[1,4,21,30,10000]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
