<?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>Forem: Sheo Sagar</title>
    <description>The latest articles on Forem by Sheo Sagar (@sheosagar1).</description>
    <link>https://forem.com/sheosagar1</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%2F269200%2F735a1072-8c74-479d-8c82-62be1266e514.jpg</url>
      <title>Forem: Sheo Sagar</title>
      <link>https://forem.com/sheosagar1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sheosagar1"/>
    <language>en</language>
    <item>
      <title>How To Create Dynamic Dropdown In React?</title>
      <dc:creator>Sheo Sagar</dc:creator>
      <pubDate>Mon, 11 Nov 2019 05:32:58 +0000</pubDate>
      <link>https://forem.com/sheosagar1/how-to-create-dynamic-dropdown-in-react-34k1</link>
      <guid>https://forem.com/sheosagar1/how-to-create-dynamic-dropdown-in-react-34k1</guid>
      <description>&lt;p&gt;Dynamic dropdown you can create with help of the map() method of the javascript. Need to create a separate component It helps to create for the repeated anchor then go to header file or where you need this the component then you can call as below code:&lt;/p&gt;

&lt;p&gt;Navlist.js&lt;br&gt;
import React from 'react'&lt;br&gt;
import {Link} from 'react-router-dom'&lt;/p&gt;

&lt;p&gt;export default (props) =&amp;gt; {&lt;br&gt;
    const renderSubMenu = () =&amp;gt; props.subMenu.map((item, i) =&amp;gt; &lt;/p&gt;
&lt;li&gt;{item.name}&lt;/li&gt;);&lt;br&gt;
    return(&lt;br&gt;
        &amp;lt;&amp;gt;&lt;br&gt;
            &lt;li&gt;

                {props.navName}
                {props.subMenu ? (typeof props.subMenu=="object" ? &lt;ul&gt;{renderSubMenu()}&lt;/ul&gt; : null) : null}
            &lt;/li&gt;
&lt;br&gt;
        &amp;lt;/&amp;gt;&lt;br&gt;
    )&lt;br&gt;
}

&lt;p&gt;Explore in details&lt;br&gt;
&lt;a href="https://www.anythinglearn.com/2019/11/how-to-create-dynamic-dropdown-in-react.html"&gt;https://www.anythinglearn.com/2019/11/how-to-create-dynamic-dropdown-in-react.html&lt;/a&gt;&lt;/p&gt;

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