<?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: Richard</title>
    <description>The latest articles on DEV Community by Richard (@richardkentng).</description>
    <link>https://dev.to/richardkentng</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%2F771168%2F0dcfcaea-ad90-4f38-8c7f-39153c8d2226.png</url>
      <title>DEV Community: Richard</title>
      <link>https://dev.to/richardkentng</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/richardkentng"/>
    <language>en</language>
    <item>
      <title>react-router-dom question: should I wrap BrowserRouter around strict mode?</title>
      <dc:creator>Richard</dc:creator>
      <pubDate>Sun, 02 Jan 2022 17:03:30 +0000</pubDate>
      <link>https://dev.to/richardkentng/react-router-dom-question-should-i-wrap-browserrouter-around-strict-mode-54g</link>
      <guid>https://dev.to/richardkentng/react-router-dom-question-should-i-wrap-browserrouter-around-strict-mode-54g</guid>
      <description></description>
      <category>react</category>
      <category>beginners</category>
      <category>help</category>
    </item>
    <item>
      <title>Solved: why does my website stop working after I make a push to github?</title>
      <dc:creator>Richard</dc:creator>
      <pubDate>Sat, 01 Jan 2022 07:02:50 +0000</pubDate>
      <link>https://dev.to/richardkentng/solved-why-does-my-website-stop-working-after-i-make-a-push-j96</link>
      <guid>https://dev.to/richardkentng/solved-why-does-my-website-stop-working-after-i-make-a-push-j96</guid>
      <description>&lt;p&gt;My personal website was working fine... until I made some updates in VScode and pushed it.  After that, I got a 404 error when I tried to access my website.  After I got back from work, hours later, the error was still there -- my website was down.  So I went to my github repo -- the one that consists of my personal website -- and I went to settings &amp;gt; pages.  Curiously, I discovered that the field under 'custom domain' was blank!  This was strange, because I was certain that I had already entered in my custom domain (&lt;a href="http://www.richard-ng.com"&gt;www.richard-ng.com&lt;/a&gt;).  Anyway, it wasn't there now..only a blank field.  So, I entered my domain and pressed save.  A minute or so later, I tested my website -- the 404 error was gone, and my site was back!  &lt;/p&gt;

&lt;p&gt;In the pages section, github still complains that my site is improperly configured...but it works fine!  It is something to worry about?&lt;/p&gt;

&lt;p&gt;Thanks for reading!  Let me know if this helped you.&lt;/p&gt;

</description>
      <category>todayilearned</category>
      <category>github</category>
    </item>
    <item>
      <title>react-router-dom question: After I setSearchParamaters, why does searchParamaters.get fail to retreive current value?</title>
      <dc:creator>Richard</dc:creator>
      <pubDate>Sat, 18 Dec 2021 19:17:08 +0000</pubDate>
      <link>https://dev.to/richardkentng/react-router-dom-question-after-i-setsearchparamaters-why-does-searchparamatersget-fail-to-retreive-current-value-4824</link>
      <guid>https://dev.to/richardkentng/react-router-dom-question-after-i-setsearchparamaters-why-does-searchparamatersget-fail-to-retreive-current-value-4824</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { useSearchParams } from "react-router-dom";

//in the component:
const [searchParams, setSearchParams] = useSearchParams()

//in the render section:
&amp;lt;button
        onClick={() =&amp;gt; {
          setSearchParams({
            filter: "alligators",
          });
          console.log(searchParams.get("filter"));
        }}
      &amp;gt;
        setSearchParams and view the value
      &amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After I click the button, I do not see 'alligators' logged!  Instead, what gets logged is the previous filter value.  In order to actually see 'alligators', I have to press the button twice.  Why doesn't it work the first time I click it? Thanks!&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>It makes a difference whether you include '&gt;' in your css selector</title>
      <dc:creator>Richard</dc:creator>
      <pubDate>Thu, 16 Dec 2021 21:18:27 +0000</pubDate>
      <link>https://dev.to/richardkentng/it-makes-a-difference-whether-you-include-in-your-css-selector-5db9</link>
      <guid>https://dev.to/richardkentng/it-makes-a-difference-whether-you-include-in-your-css-selector-5db9</guid>
      <description>&lt;p&gt;Regarding css selectors, I learned that there is a difference between ".parent-element &amp;gt; .child-element" and ".parent-element .child-element.".  Notice how one version includes a carrot.  If you use the carrot, it means you are targeting DIRECT children of the parent element.  If you omit the carrot, then you are targeting ANY children under the parent element, regardless of whether it is a direct child or not. &lt;/p&gt;

</description>
      <category>todayilearned</category>
      <category>css</category>
    </item>
    <item>
      <title>Goal 1 accomplished: A personal website.</title>
      <dc:creator>Richard</dc:creator>
      <pubDate>Sat, 11 Dec 2021 21:37:20 +0000</pubDate>
      <link>https://dev.to/richardkentng/my-personal-website-v1-4hde</link>
      <guid>https://dev.to/richardkentng/my-personal-website-v1-4hde</guid>
      <description>&lt;p&gt;I finally put up my personal website!  It's fairly simple and it uses HTML tables 😆 to display my education and work experience, but considering that I returned to coding just a week ago, I feel like it's a good starting point.  What do you think?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://richardkentng.github.io/my-site/"&gt;https://richardkentng.github.io/my-site/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I think I should also purchase a custom domain so that my site's URL will look more professional.  Does anybody know a good resource on how to do that?  Thanks!&lt;/p&gt;

&lt;p&gt;Edit:  I have my own domain now!: &lt;a href="https://www.richard-ng.com"&gt;https://www.richard-ng.com&lt;/a&gt;&lt;/p&gt;

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