<?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: Rehan Hassan</title>
    <description>The latest articles on DEV Community by Rehan Hassan (@rehanhassan).</description>
    <link>https://dev.to/rehanhassan</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%2F1127059%2F9fecd589-cedc-4477-b521-26e6e3f0aefa.png</url>
      <title>DEV Community: Rehan Hassan</title>
      <link>https://dev.to/rehanhassan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rehanhassan"/>
    <language>en</language>
    <item>
      <title>Run Vue App inside PHP</title>
      <dc:creator>Rehan Hassan</dc:creator>
      <pubDate>Wed, 26 Jul 2023 13:57:13 +0000</pubDate>
      <link>https://dev.to/rehanhassan/run-vue-app-inside-php-51id</link>
      <guid>https://dev.to/rehanhassan/run-vue-app-inside-php-51id</guid>
      <description>&lt;p&gt;Hi there!&lt;/p&gt;

&lt;p&gt;I have created a very simple two pages SPA using VUE &amp;amp; Vite. One page is Listview containing list items and the other page is a DetilView to show the details of the selected item.&lt;/p&gt;

&lt;p&gt;I want to achieve both SSR + SPA behavior using (PHP + VUE). I cannot use other SSR frameworks at the moment. How can I combine both (PHP &amp;amp; VUE) so that I get SEO benefits from PHP &amp;amp; SPA functionality from VUE.&lt;/p&gt;

&lt;p&gt;THANKS!!!&lt;/p&gt;

</description>
      <category>vue</category>
      <category>php</category>
      <category>seo</category>
    </item>
    <item>
      <title>Run React build inside PHP</title>
      <dc:creator>Rehan Hassan</dc:creator>
      <pubDate>Wed, 26 Jul 2023 12:58:57 +0000</pubDate>
      <link>https://dev.to/rehanhassan/run-react-build-inside-php-51kk</link>
      <guid>https://dev.to/rehanhassan/run-react-build-inside-php-51kk</guid>
      <description>&lt;p&gt;Hi there!&lt;/p&gt;

&lt;p&gt;I have created a very simple two pages SPA using React 18 &amp;amp; Vite. One page is Listview containing list items and the other page is a DetilView to show the details of the selected item. &lt;/p&gt;

&lt;p&gt;I have deployed my react build to a server already, but instead of serving my app directly, I want to render my app inside PHP, I want to use PHP for SEO (can't use Next.js or any other SSR frameworks).&lt;/p&gt;

&lt;p&gt;I want to achieve both SSR + SPA behavior with using PHP + React &lt;br&gt;
Check below image, that's how I'm trying to do it. Icon &amp;amp; Titles are being loaded but whole page is empty even though React is being rendered!&lt;/p&gt;

&lt;p&gt;Any help would be apricated! &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ArM8fKRV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwi8cewlqq8ii8ykpywt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ArM8fKRV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwi8cewlqq8ii8ykpywt.png" alt="Image description" width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JzqQfIem--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zmkj1o9drpatf1240fn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JzqQfIem--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zmkj1o9drpatf1240fn.png" alt="Image description" width="800" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

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