<?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: Abdul Moiz Sheraz</title>
    <description>The latest articles on DEV Community by Abdul Moiz Sheraz (@moizsheraz).</description>
    <link>https://dev.to/moizsheraz</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%2F1045599%2Fd941beab-f2ec-4fd7-a6da-c1976dda0701.png</url>
      <title>DEV Community: Abdul Moiz Sheraz</title>
      <link>https://dev.to/moizsheraz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/moizsheraz"/>
    <language>en</language>
    <item>
      <title>passing Props through link componet</title>
      <dc:creator>Abdul Moiz Sheraz</dc:creator>
      <pubDate>Wed, 15 Mar 2023 10:51:54 +0000</pubDate>
      <link>https://dev.to/moizsheraz/passing-props-through-link-componet-1f5</link>
      <guid>https://dev.to/moizsheraz/passing-props-through-link-componet-1f5</guid>
      <description>&lt;p&gt;this is my line of code where iam mapping some items fetching from API&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div style={{ display:"flex",flexWrap:"wrap",justifyContent:"center"}}&amp;gt;
{games.length===0?&amp;lt;p className='nomatch'&amp;gt;No Matching Results&amp;lt;/p&amp;gt;:games.map(({title,thumbnail,id,gameurl,freetogame_profile_url,platform,short_description,publisher,developer
})=&amp;gt;{

  return &amp;lt;div  key={id} style={{display: 'flex', justifyContent: 'center'}} &amp;gt;
  &amp;lt;div style={{width: '300px', height: '300px', backgroundColor: '#fff',margin:"20px", borderRadius: '5px', display: 'flex', flexDirection: 'column', alignItems: 'center', boxShadow: '0px 0px 10px rgba(0, 0, 0, 0.1)',border:"2px solid rgb(245, 6, 133)"}}&amp;gt;
    &amp;lt;img src={thumbnail} alt="Game 1" style={{width:"297px",height:"187px"}} /&amp;gt;
    &amp;lt;h3 style={{textAlign: 'center'}}&amp;gt;{title}&amp;lt;/h3&amp;gt;
    &amp;lt;div style={{display: 'flex', justifyContent: 'space-around',marginTop:"12px",  width: '100%'}}&amp;gt;
    &amp;lt;Link to={{
  pathname: `/games/${id}`,
  state: {short_description:short_description}
}}&amp;gt;
      &amp;lt;button style={{backgroundColor: 'rgb(245, 6, 133)', color: '#fff', padding: '10px 20px', borderRadius: '5px', border: 'none', cursor: 'pointer'}}&amp;gt;View&amp;lt;/button&amp;gt;
     &amp;lt;/Link&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When we click link componet we will be directed to GameDetail.js Componet in my app how i will used these state values in my GameDetail.js Componet plz help me if there is any particular concept&lt;/p&gt;

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