<?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: Emily Feng</title>
    <description>The latest articles on DEV Community by Emily Feng (@efeng2).</description>
    <link>https://dev.to/efeng2</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%2F2289748%2F37031cf5-1406-4676-a3d4-ed7bd87a1039.png</url>
      <title>DEV Community: Emily Feng</title>
      <link>https://dev.to/efeng2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/efeng2"/>
    <language>en</language>
    <item>
      <title>How to Host React Webpages on Github Pages</title>
      <dc:creator>Emily Feng</dc:creator>
      <pubDate>Tue, 25 Feb 2025 22:17:49 +0000</pubDate>
      <link>https://dev.to/efeng2/how-to-host-react-webpages-on-github-pages-556p</link>
      <guid>https://dev.to/efeng2/how-to-host-react-webpages-on-github-pages-556p</guid>
      <description>&lt;p&gt;GitHub Pages does not support JSX or modern ES6 modules directly.&lt;br&gt;
If deploying to GitHub Pages, don't forget to build first.&lt;br&gt;
Here are some useful tutorials I followed to solve this problem. (Huge thanks to the authors)&lt;/p&gt;

&lt;p&gt;Note: deploy pages from &lt;code&gt;gh-pages&lt;/code&gt; branch, some vites when running &lt;code&gt;npm run build&lt;/code&gt; change &lt;code&gt;build&lt;/code&gt; to &lt;code&gt;dist&lt;/code&gt;, to account for this do &lt;code&gt;"deploy": "gh-pages -d dist"&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deploying a React App
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://github.com/gitname/react-gh-pages" rel="noopener noreferrer"&gt;https://github.com/gitname/react-gh-pages&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  For Single Page Apps (Fixing Refresh 404 Problems)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://github.com/rafgraph/spa-github-pages" rel="noopener noreferrer"&gt;https://github.com/rafgraph/spa-github-pages&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>react</category>
      <category>tutorial</category>
      <category>github</category>
      <category>webdev</category>
    </item>
    <item>
      <title>D-Separation</title>
      <dc:creator>Emily Feng</dc:creator>
      <pubDate>Tue, 25 Feb 2025 21:56:58 +0000</pubDate>
      <link>https://dev.to/efeng2/d-separation-4pl5</link>
      <guid>https://dev.to/efeng2/d-separation-4pl5</guid>
      <description>&lt;h2&gt;
  
  
  Definition and Use
&lt;/h2&gt;

&lt;p&gt;D-separation is used in Bayes Nets. In a system with multiple random variables, we want to know the conditionally independent of event A and B given the condition that other variables are observed.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Medical Scenario: Relationships (causes, effects) between diseases and symptoms.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;"Given a Bayes Net and a subset of nodes (C, D) that are observed, is it guaranteed that (A) and (B) are conditionally independent of each other."&lt;/p&gt;

&lt;p&gt;A ⊥ B | C, D&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F99vnt1lyl2pg6b2s1e4l.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F99vnt1lyl2pg6b2s1e4l.PNG" alt="D-Separation" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

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