<?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: Stephane Smirnow</title>
    <description>The latest articles on DEV Community by Stephane Smirnow (@mamorukunbe).</description>
    <link>https://dev.to/mamorukunbe</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%2F683584%2F9ace9afc-d3cf-476e-8337-9f2d046e23c0.jpg</url>
      <title>DEV Community: Stephane Smirnow</title>
      <link>https://dev.to/mamorukunbe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mamorukunbe"/>
    <language>en</language>
    <item>
      <title>How to deploy a fullstack react application?</title>
      <dc:creator>Stephane Smirnow</dc:creator>
      <pubDate>Tue, 17 Aug 2021 12:37:07 +0000</pubDate>
      <link>https://dev.to/mamorukunbe/how-to-deploy-a-fullstack-react-application-65f</link>
      <guid>https://dev.to/mamorukunbe/how-to-deploy-a-fullstack-react-application-65f</guid>
      <description>&lt;p&gt;Hi there!&lt;/p&gt;

&lt;p&gt;I have a React front-end + backend working perfectly in development mode. My backend is a simple server.mjs file within my React directory tree, which I launch using “node src/processes/net/server.mjs” from the React root. Note: all is running localy, and is also intended to run localy in production, so the entire frontend-backend will run on localhost only.&lt;/p&gt;

&lt;p&gt;Now, being at the end of the development, I decided to serve the whole thing built. So, I “yarn build” to create the React build directory and accessed it successfully through “npx serve build” (after having installed serve module).&lt;/p&gt;

&lt;p&gt;But there is no trace of my server.mjs backend in the build directory. Probably is it in the js package that has been build? In which case, anyway, I have no clue on how to launch it now ^^’ Did I do something wrong?&lt;/p&gt;

&lt;p&gt;Thank you in advance!&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>Why would a React component recreate all its memoized children ?</title>
      <dc:creator>Stephane Smirnow</dc:creator>
      <pubDate>Tue, 10 Aug 2021 12:29:08 +0000</pubDate>
      <link>https://dev.to/mamorukunbe/why-would-a-react-component-recreate-all-its-memoized-children-4pdm</link>
      <guid>https://dev.to/mamorukunbe/why-would-a-react-component-recreate-all-its-memoized-children-4pdm</guid>
      <description>&lt;p&gt;Hello from Belgium,&lt;/p&gt;

&lt;p&gt;I have a tree of similar components, each memoized with a custom areEqual. They represent a directory tree in reality. Only the root component knows the full directory structure, and pass down that information recursively to its children as a prop. It is working perfectly well: if I "fold" a child, in exemple, the areEqual functions are called only for that child parents and nothing else is rerendered.&lt;/p&gt;

&lt;p&gt;My only problem is when I fold the root component: the root areEqual is tested, return false (as expected)... and then all the children of the whole tree are unmounted/remounted, without a single call to their areEqual functions! In the inspect Profiler companion, I see those children "created for the first time", indicating me that the root parent, when rerendering, considers all its children as being new.&lt;/p&gt;

&lt;p&gt;So my question is as fellow: the children areEqual function not being called, they are obviously not recreated because of a prop change. But after several hours of testing, I still don't have a clue on why the root parent consider all of its childrens to be new components. Do you have any idea on how to determine why a component considers its children components to be new instances – even if there are all supposed to be memoised instances ? I'm completely lost on this one :(&lt;/p&gt;

&lt;p&gt;Thank you very much in advance !&lt;/p&gt;

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