<?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: ro.html</title>
    <description>The latest articles on DEV Community by ro.html (@rothecoder).</description>
    <link>https://dev.to/rothecoder</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%2F438905%2F8d82fec8-a273-40a7-83bb-8af3bcaed5ee.jpg</url>
      <title>DEV Community: ro.html</title>
      <link>https://dev.to/rothecoder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rothecoder"/>
    <language>en</language>
    <item>
      <title>React Recap: Quick Visual Explanation of Props for Visual Learners</title>
      <dc:creator>ro.html</dc:creator>
      <pubDate>Sat, 14 Nov 2020 15:08:43 +0000</pubDate>
      <link>https://dev.to/rothecoder/react-recap-quick-visual-explanation-of-props-for-visual-learners-1mj6</link>
      <guid>https://dev.to/rothecoder/react-recap-quick-visual-explanation-of-props-for-visual-learners-1mj6</guid>
      <description>&lt;h1&gt;
  
  
  Hey y'all!
&lt;/h1&gt;

&lt;p&gt;I hope you are doing well, swell, fine and dandy!&lt;/p&gt;

&lt;p&gt;My name is Rojhan Paydar, but you can call me Ro! I am a front-end web developer who is currently focusing on React.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_u9Cjeg2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604597486673/W8lEuc4bA.jpeg%3Fauto%3Dformat%26q%3D60" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_u9Cjeg2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604597486673/W8lEuc4bA.jpeg%3Fauto%3Dformat%26q%3D60" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When it comes to learning, I am very hands on, and love to create visuals to help with remembering important lessons.&lt;/p&gt;

&lt;p&gt;Below is the brain child which is my thought process for how to remember PROPS, and the reason why I made it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fW9PO-Xh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604596837674/CT_NjbznQ.jpeg%3Fauto%3Dformat%26q%3D60" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fW9PO-Xh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604596837674/CT_NjbznQ.jpeg%3Fauto%3Dformat%26q%3D60" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Created By: Rojhan Paydar &lt;a class="comment-mentioned-user" href="https://dev.to/rothecoder"&gt;@rothecoder&lt;/a&gt;
&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Why I chose this relationship with the Mandalorian and "The Child" is simple. In the latest Star Wars series &lt;em&gt;The Mandalorian&lt;/em&gt;, "Baby Yoda" is called "the child".&lt;/p&gt;

&lt;p&gt;For those who have never seen the show they know "the child" famously as "baby yoda". For people who DO watch the show, we know "baby yoda" as "the child". &lt;/p&gt;

&lt;p&gt;The relationship between Mando and "the child" is not biological parent and child, but Mando acts as a parent to "the child". It is very much obvious that their relationship is like "parent and child".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BSaP3lEZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://media1.tenor.com/images/4640854d881b01a3b8dcacdd6cfbfc91/tenor.gif%3Fitemid%3D19112902" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BSaP3lEZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://media1.tenor.com/images/4640854d881b01a3b8dcacdd6cfbfc91/tenor.gif%3Fitemid%3D19112902" alt='A moving image of Baby Yoda AKA "The Child" running to the Mandalorian and getting picked up.'&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I mean come on, you can't tell me that isn't a child and parent?!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Anyway, whenever I'm watching the show, someone refers to "baby yoda" as "the child". At that moment, I start to think about code. It goes the other way around too! When talking about parent and child in reference to code, and someone says "the child", I always think about "baby yoda". &lt;/p&gt;

&lt;p&gt;So naturally, during my React recap via Stephen Grider's Udemy course "Modern React with Redux", I kept hearing him say "the child" over and over, and I started to think about Baby Yoda (just for a moment). I tuned back into what I was learning.. and then it CLICKED.&lt;/p&gt;

&lt;p&gt;I had this idea to make a comic to help me solidify my understanding of props, and perhaps help others too! (plus I love drawing so this was a win-win for me). As a visual learner, this was a GREAT way to help the idea STICK! And guess what? It worked!&lt;/p&gt;

&lt;p&gt;Here's the break down:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The Mandalorian (parent) sees the child using "the force" to play with leaves (Mando doesn't exactly know what the force is, but knows it's existence).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mando thinks the child using the force is "friggin awesome" and wants to tell this information to the child. This is where "props" come in.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mandalorian approaches the child to give them props (the information stored by the parent).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After Mando "gives props", the child now has this information from the Mandalorian (the information being "they are awesome").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The child wants to give new information back up to Mando (the parent)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The child then realizes, they cannot directly give props back, because they are THE CHILD. Children cannot give information up to their parent.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YPCXKUYV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604598199743/gA3rRxrIC.gif%3Fauto%3Dformat%2Ccompress%26gif-q%3D60" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YPCXKUYV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604598199743/gA3rRxrIC.gif%3Fauto%3Dformat%2Ccompress%26gif-q%3D60" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it! That's my little comic explaining props. I will literally never forget now, and I hope it sticks with you too! :)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9zoC-BNI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604598842905/YSH4yeaLX.gif%3Fauto%3Dformat%2Ccompress%26gif-q%3D60" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9zoC-BNI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604598842905/YSH4yeaLX.gif%3Fauto%3Dformat%2Ccompress%26gif-q%3D60" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you like this idea, please comment below for me to make more as I learn React! It might not always come to me, but if I have an idea I would love to share it with the tech world!&lt;/p&gt;

&lt;p&gt;I hope you enjoyed, learned, and remember..&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---zJI24Z0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604598286455/nFW_x6sUz.gif%3Fauto%3Dformat%2Ccompress%26gif-q%3D60" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---zJI24Z0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1604598286455/nFW_x6sUz.gif%3Fauto%3Dformat%2Ccompress%26gif-q%3D60" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To connect with me, find me here!&lt;/p&gt;

&lt;p&gt;Twitter: twitter.com/rothecoder&lt;/p&gt;

&lt;p&gt;Instagram: instagram.com/rothecoder&lt;/p&gt;

&lt;p&gt;GitHub: github.com/rojhanpaydar&lt;/p&gt;

&lt;p&gt;LinkedIn: linkedin.com/in/rojhan-ro-paydar-432856b4&lt;/p&gt;

&lt;p&gt;Medium: medium.com/@rojhanpaydar&lt;/p&gt;

&lt;p&gt;Hashnode: hashnode.com/&lt;a class="comment-mentioned-user" href="https://dev.to/rothecoder"&gt;@rothecoder&lt;/a&gt;
&lt;/p&gt;



</description>
      <category>react</category>
      <category>codenewbie</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
