<?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: Rushi</title>
    <description>The latest articles on DEV Community by Rushi (@leviosa19).</description>
    <link>https://dev.to/leviosa19</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%2F408880%2Fb00f4dbb-c5e2-4bfc-83d7-49abaa7f6099.jpg</url>
      <title>DEV Community: Rushi</title>
      <link>https://dev.to/leviosa19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leviosa19"/>
    <language>en</language>
    <item>
      <title>How to pass input data from one class to another</title>
      <dc:creator>Rushi</dc:creator>
      <pubDate>Sun, 14 Jun 2020 17:24:11 +0000</pubDate>
      <link>https://dev.to/leviosa19/how-to-pass-input-data-from-one-class-to-another-2jil</link>
      <guid>https://dev.to/leviosa19/how-to-pass-input-data-from-one-class-to-another-2jil</guid>
      <description>&lt;p&gt;I'm trying to pass the data from one class to another and displayed it in main class i.e user write something in input field(Component A) and at the same time data or input value is display in another component(Component B) and both work is displayed by Component C. But I can't figure out what's wrong with my code. Below is my dummy code but the actual code is the same as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class A extends React.Component {
    constructor(props) {
        super()
    }
    render() {
        return (
            &amp;lt;input name="firstName" placeholder="Enter name" /&amp;gt;
        )
    }
}

class B extends React.Component {
    constructor(props) {
        super(props)
    }
    render() {
        return (
            &amp;lt;h1&amp;gt; "Display data here from input of class A " &amp;lt;/h1&amp;gt;
        )
    }
}

class C extends React.Component {
    constructor(props) {
        super(props)
    }
    render() {
        return (
            &amp;lt;div&amp;gt;
                &amp;lt;A /&amp;gt;
                &amp;lt;B /&amp;gt;
            &amp;lt;/div&amp;gt;
        )
    }
}

ReactDOM.render(&amp;lt;C /&amp;gt;, document.getElementById("root"))
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



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