<?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: lshawa</title>
    <description>The latest articles on DEV Community by lshawa (@lshawa).</description>
    <link>https://dev.to/lshawa</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%2F311399%2Fb9aa1acc-758e-4cee-9d19-182c11fc5364.png</url>
      <title>DEV Community: lshawa</title>
      <link>https://dev.to/lshawa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lshawa"/>
    <language>en</language>
    <item>
      <title>why wrap a functional component in React.createElemenr instead of utilizing it’s returned element via a functional call? </title>
      <dc:creator>lshawa</dc:creator>
      <pubDate>Tue, 07 Dec 2021 23:33:08 +0000</pubDate>
      <link>https://dev.to/lshawa/why-wrap-a-functional-component-in-reactcreateelemenr-instead-of-utilizing-its-returned-element-via-a-functional-call-289i</link>
      <guid>https://dev.to/lshawa/why-wrap-a-functional-component-in-reactcreateelemenr-instead-of-utilizing-its-returned-element-via-a-functional-call-289i</guid>
      <description>&lt;p&gt;During a render, why wrap a functional component in React.createElemenr instead of utilizing it’s returned element via a functional call? &lt;/p&gt;

&lt;p&gt;This is outside of the context of jsx. Pure react. SOS &lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How do we feel about Python? </title>
      <dc:creator>lshawa</dc:creator>
      <pubDate>Tue, 06 Apr 2021 01:55:53 +0000</pubDate>
      <link>https://dev.to/lshawa/how-do-we-feel-about-python-319k</link>
      <guid>https://dev.to/lshawa/how-do-we-feel-about-python-319k</guid>
      <description>&lt;p&gt;I'm just learning Python. I come from Javascript world. If you have any tips or thoughts on Python, especially in compared to Javascript please post them below. :) &lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>javascript</category>
      <category>react</category>
    </item>
    <item>
      <title>Search component with dropdown </title>
      <dc:creator>lshawa</dc:creator>
      <pubDate>Thu, 27 Feb 2020 17:12:17 +0000</pubDate>
      <link>https://dev.to/lshawa/search-component-with-dropdown-2ehi</link>
      <guid>https://dev.to/lshawa/search-component-with-dropdown-2ehi</guid>
      <description>&lt;p&gt;Has anyone built a search component with a category? &lt;/p&gt;

&lt;p&gt;I'm attempting the build a search component based on a category.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>redux</category>
      <category>help</category>
    </item>
    <item>
      <title>How do we unit test functions within a functional component?   </title>
      <dc:creator>lshawa</dc:creator>
      <pubDate>Fri, 21 Feb 2020 13:11:27 +0000</pubDate>
      <link>https://dev.to/lshawa/how-do-we-unit-test-functions-within-a-functional-component-4h09</link>
      <guid>https://dev.to/lshawa/how-do-we-unit-test-functions-within-a-functional-component-4h09</guid>
      <description>&lt;p&gt;With a class component I usually create an instance of that component and I can access the function. I'm not sure how to access the function of a functional component.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const errorMessages = {
    browse: {
        fileLimit: 'File size is too big.',
        unsupportedFormat: 'The file you selected is not a supported format. Please upload a file in .csv format.',
        noRows: 'No agent IDS could be found.',
        maxAgents: 'A max of 25 agents can be uploaded at a time.',
        noValidAgents: 'No valid agents could be found.'
    },
    duplicate: 'The following agents are already existing on the table.'
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;const UploadButton = (props, ref) =&amp;gt; {&lt;br&gt;
    const mimeTypes = ['text/csv', 'application/vnd.ms-excel'];&lt;br&gt;
    let initialValue = false;&lt;br&gt;
    const [browseError, setBrowseError] = useState(initialValue);&lt;br&gt;
    const [uploadError, setUploadError] = useState(initialValue);&lt;br&gt;
    const [duplicateError, setDupplicateError] = useState(initialValue);&lt;br&gt;
    const [uploading, setUploading] = useState(false);&lt;br&gt;
    const fileInputRefs = useRef(initialValue);&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const clearAllErrors = () =&amp;gt; {
    setBrowseError(initialValue);
    setUploadError(initialValue);
    setDupplicateError(initialValue);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;....&lt;br&gt;
} &lt;/p&gt;

&lt;p&gt;So accessing clearAllErrors for example or errorMessages which outside of the functional component. &lt;/p&gt;

</description>
      <category>ux</category>
      <category>testing</category>
      <category>javascript</category>
      <category>react</category>
    </item>
    <item>
      <title>What does this actually mean? Error: This method is only meant to be run on single node. 0 found instead. </title>
      <dc:creator>lshawa</dc:creator>
      <pubDate>Thu, 06 Feb 2020 18:47:37 +0000</pubDate>
      <link>https://dev.to/lshawa/what-does-this-actually-mean-error-this-method-is-only-meant-to-be-run-on-single-node-0-found-instead-4lph</link>
      <guid>https://dev.to/lshawa/what-does-this-actually-mean-error-this-method-is-only-meant-to-be-run-on-single-node-0-found-instead-4lph</guid>
      <description>&lt;p&gt;I typically get this error whenever I’m unit testing using mount. I’ve also seen the error “5 bodes found instead”. But what does that actually mean? &lt;/p&gt;

</description>
      <category>testing</category>
      <category>javascript</category>
      <category>help</category>
    </item>
    <item>
      <title>How To’s</title>
      <dc:creator>lshawa</dc:creator>
      <pubDate>Wed, 05 Feb 2020 18:26:47 +0000</pubDate>
      <link>https://dev.to/lshawa/how-to-s-o3l</link>
      <guid>https://dev.to/lshawa/how-to-s-o3l</guid>
      <description>&lt;p&gt;Is it possible to save an article for later on the mobile app? &lt;/p&gt;

</description>
    </item>
    <item>
      <title>TechnicalSkills</title>
      <dc:creator>lshawa</dc:creator>
      <pubDate>Wed, 08 Jan 2020 03:16:47 +0000</pubDate>
      <link>https://dev.to/lshawa/technicalskills-3n5l</link>
      <guid>https://dev.to/lshawa/technicalskills-3n5l</guid>
      <description>&lt;p&gt;I’m a frontend developer and have been using HTML, CSS, javascript, and the react and redux frameworks. I am looking to acquire more experience and more in depth knowledge of object oriented and functional programming and then ultimately become a complete full- stack web developer.&lt;/p&gt;

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