<?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: Edun Elijah </title>
    <description>The latest articles on DEV Community by Edun Elijah  (@devcreed).</description>
    <link>https://dev.to/devcreed</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F435306%2F647a0dcf-675e-48b7-9a68-5e32c93327b5.png</url>
      <title>DEV Community: Edun Elijah </title>
      <link>https://dev.to/devcreed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devcreed"/>
    <language>en</language>
    <item>
      <title>DSA Series: Add to Array-Form of Integer</title>
      <dc:creator>Edun Elijah </dc:creator>
      <pubDate>Tue, 13 Oct 2026 01:39:32 +0000</pubDate>
      <link>https://dev.to/devcreed/dsa-series-add-to-array-form-of-integer-1i6d</link>
      <guid>https://dev.to/devcreed/dsa-series-add-to-array-form-of-integer-1i6d</guid>
      <description>&lt;p&gt;Not quite long, I decided I was going to get back to solving DSA problems to get better at problem solving and also improve my writing skills because I will be taking time to write the back story of how I solved each problem. Fast forward to this morning, I started with a lot more than I could chew (it was a medium-ranked problem 😄). Somehow I found my way to “Add to Array-Form of Integer” through the similar questions options thinking this would be simple.   &lt;/p&gt;

&lt;p&gt;The question:&lt;br&gt;
The&amp;nbsp;array-form&amp;nbsp;of an integer&amp;nbsp;num&amp;nbsp;is an array representing its digits in left-to-right order.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For example, for&amp;nbsp;num = 1321, the array form is&amp;nbsp;[1,3,2,1].
Given&amp;nbsp;num, the&amp;nbsp;array-form&amp;nbsp;of an integer, and an integer&amp;nbsp;k, return&amp;nbsp;the&amp;nbsp;array-form&amp;nbsp;of the integer&amp;nbsp;num + k.
 e.g.  Example 1:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input: num = [1,2,0,0], k = 34
Output: [1,2,3,4]
Explanation: 1200 + 34 = 1234
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;My First Approach: I looked at it briefly and concluded that I would convert num to a string then add it to k. Sounds good right? ✌️  Let me show you the implementation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;addToArrayForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt; &lt;span class="nx"&gt;k&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;wholeNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;wholeNumber&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;k&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;array&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;array&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The test case passed and I reassured myself that the problem was a slice of cake so I decided to submit my solution only to see I only passed 90/152 test cases…. Then I saw this particular failing test:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input: num = [1,2,6,3,0,7,1,7,1,9,7,5,6,6,4,4,0,0,6,3], k = 516  
My Output  = [1,2,6,3,0,7,1,7,1,9,7,5,6,6,4,4,0,0,0,0]
Expected Output = [1,2,6,3,0,7,1,7,1,9,7,5,6,6,4,4,0,5,7,9]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I couldn’t fathom why I had four trailing zeros; this led me to research on Google to find out what the issue was:   &lt;br&gt;
I discovered I had run into an issue because my number had exceeded the Maximum Safe Integer Limit in JavaScript.  In JavaScript, all standard numbers are stored as 64-bit floating-point values (doubles). &lt;/p&gt;

&lt;p&gt;JavaScript can only precisely handle &lt;code&gt;9, 007, 199, 254, 740, 991&lt;/code&gt;. If you are interested in pronouncing that value, it is: Nine quadrillion seven trillion one hundred ninety-nine billion two hundred fifty-four million seven hundred forty thousand nine hundred ninety-one. - Don’t mention!  My array has 20 digits, producing a value of &lt;code&gt;12,630,717,197,566,440,063&lt;/code&gt;, which is higher than the Maximum Safe Integer value. So, when a number gets this big, JavaScript loses precision and rounds the last few digits to zero. Hence the reason I had trailing zeros. After my research, I discovered the solution to my problem was to use &lt;code&gt;BigInt()&lt;/code&gt; instead of &lt;code&gt;Number()&lt;/code&gt; because it can handle integers of practically any size without losing precision. &lt;/p&gt;

&lt;p&gt;Using &lt;code&gt;BigInt()&lt;/code&gt; adds a &lt;code&gt;n&lt;/code&gt; suffix to a number to signify that it is a BigInt data type, not a normal number e.g &lt;code&gt;12630717197566440063n&lt;/code&gt;. My thought process was to use BigInt() then convert my response to type Number to eliminate the n and add the other value. This will only result in the trailing zero issue.  I wanted to turn the BigInt value to type Number so that I could add the other variable that was passed to the function, but adding a BigInt and Number value throws a TypeError.  &lt;/p&gt;

&lt;p&gt;Since I was clear with possible pitfalls I needed to avoid, I took this approach: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;I created a variable &lt;code&gt;wholeNumber&lt;/code&gt; to join the array of numbers and most importantly wrap a BigInt() around it. &lt;/li&gt;
&lt;li&gt;I created a variable &lt;code&gt;sum&lt;/code&gt; to allow me to add &lt;code&gt;wholeNumber&lt;/code&gt;(type BigInt) to the second variable wrapped in BigInt in-built object to make both values of the same data type. Don’t forget, I need to return the answer in an array form.  &lt;/li&gt;
&lt;li&gt;I created a variable &lt;code&gt;array&lt;/code&gt; with the intention of getting the final answer that returns the new array instance. I decided to go for the &lt;code&gt;Array.from()&lt;/code&gt; built-in static method so that I can convert a number into an array of its individual numerical digits. Within the method I passed two arguments &lt;code&gt;String(sum)&lt;/code&gt; to converts the BigInt sum value to String and the &lt;code&gt;Number&lt;/code&gt; type as the map function that converts each elements of the array into a number  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can read more about Array.from() &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from" rel="noopener noreferrer"&gt;here.&lt;/a&gt;   &lt;/p&gt;

&lt;p&gt;Here is my solution that passed all the submission test cases:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;addToArrayForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt; &lt;span class="nx"&gt;k&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;wholeNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;BigInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;wholeNumber&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nc"&gt;BigInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;k&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;array&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;array&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The initial failing example now passed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input: num = [1,2,6,3,0,7,1,7,1,9,7,5,6,6,4,4,0,0,6,3], k = 516  
My Output  = [1,2,6,3,0,7,1,7,1,9,7,5,6,6,4,4,0,5,7,9]
Expected Output = [1,2,6,3,0,7,1,7,1,9,7,5,6,6,4,4,0,5,7,9]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Although my submission was accepted, it wasn’t optimised in terms of runtime and memory. My solution has a runtime of &lt;code&gt;16ms&lt;/code&gt; while the most optimised solution has a runtime of &lt;code&gt;0ms&lt;/code&gt;.  In subsequent series, I will pay attention to optimisation and also add it to the documentation.&lt;/p&gt;

&lt;p&gt;This was from Leetcode. You can check it out &lt;a href="https://leetcode.com/problems/add-to-array-form-of-integer" rel="noopener noreferrer"&gt;here.&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;Thank you for reading and see you on the next one!&lt;/p&gt;

</description>
      <category>dsa</category>
      <category>javascript</category>
      <category>datastructures</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Edun Elijah </dc:creator>
      <pubDate>Fri, 20 Dec 2024 06:04:19 +0000</pubDate>
      <link>https://dev.to/devcreed/-33kn</link>
      <guid>https://dev.to/devcreed/-33kn</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/tkarropoulos/understanding-time-complexity-o-notation-in-software-engineering-1ad1" class="crayons-story__hidden-navigation-link"&gt;Understanding Time Complexity O-Notation in Software Engineering&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/tkarropoulos" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F446865%2Fdc5c9117-ab10-4578-9a18-7c3fb454f26c.jpg" alt="tkarropoulos profile" class="crayons-avatar__image" width="512" height="512"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/tkarropoulos" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Theodore Karropoulos
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Theodore Karropoulos
                
                
              
              &lt;div id="story-author-preview-content-1335944" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/tkarropoulos" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F446865%2Fdc5c9117-ab10-4578-9a18-7c3fb454f26c.jpg" class="crayons-avatar__image" alt="" width="512" height="512"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Theodore Karropoulos&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/tkarropoulos/understanding-time-complexity-o-notation-in-software-engineering-1ad1" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jan 20 '23&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/tkarropoulos/understanding-time-complexity-o-notation-in-software-engineering-1ad1" id="article-link-1335944"&gt;
          Understanding Time Complexity O-Notation in Software Engineering
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/learning"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;learning&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/tutorial"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;tutorial&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/productivity"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;productivity&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/tkarropoulos/understanding-time-complexity-o-notation-in-software-engineering-1ad1" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;16&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/tkarropoulos/understanding-time-complexity-o-notation-in-software-engineering-1ad1#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            4 min read
          &lt;/small&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>computerscience</category>
      <category>softwaredevelopment</category>
      <category>programming</category>
      <category>learning</category>
    </item>
    <item>
      <title>Hideous Mistake When using Styled-Component with ReactJs</title>
      <dc:creator>Edun Elijah </dc:creator>
      <pubDate>Mon, 02 May 2022 19:31:06 +0000</pubDate>
      <link>https://dev.to/devcreed/hideous-mistake-when-using-styled-component-with-reactjs-2ika</link>
      <guid>https://dev.to/devcreed/hideous-mistake-when-using-styled-component-with-reactjs-2ika</guid>
      <description>&lt;p&gt;This mistake I will be sharing isn't a common one due to the fact that most Reactjs developers won't come across it and some developers would easily figure it out and it might be a strenuous task for others, or a guide for beginners.&lt;/p&gt;

&lt;p&gt;Before diving into the practical aspect let's look at how Styled-Components relate with ReactJs.&lt;/p&gt;

&lt;p&gt;Styled-components leverage a mixture of JavaScript and CSS using a technique called CSS-in-JS. Styled-components are based on tagged template literals, meaning actual CSS code is written between backticks when styling your components. In short styled-component is a stateless component that renders JSX.&lt;/p&gt;

&lt;p&gt;The mistake I would be talking about is based on naming convention.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are naming conventions?
&lt;/h3&gt;

&lt;p&gt;Naming conventions are rules that dictate the way you name the various files, folders, and tokens in our code (such as variables, functions, classes, methods, objects, and so on). The whole idea behind naming conventions is to help make code more maintainable for the reader. It helps with discoverability and understanding a codebase. Let's talk about common naming convention programmers or developers use&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Camel Case&lt;/strong&gt;: Begins with a lowercase with each word delimited by a capital letter e.g. &lt;code&gt;navMenu, newUser, loginWrapper&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Pascal Case&lt;/strong&gt;: It is similar to camel case, but the first letter is always capitalized e.g. &lt;code&gt;NavMenu, NewUser, LoginWrapper&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Snake Case&lt;/strong&gt;: It entails splitting words with an underscore e.g. &lt;code&gt;nav_menu, new_user, login_wrapper&lt;/code&gt;.&lt;br&gt;
&lt;em&gt;You can read more about naming convention &lt;a href="https://khalilstemmler.com/blogs/camel-case-snake-case-pascal-case/" rel="noopener noreferrer"&gt;here.&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Since styled-component uses CSS-in-JS technique and due to experience with Javascript we might decide to use the camel case naming convention, we would get too see the result of the three naming conventions discussed as we continue.&lt;/p&gt;

&lt;p&gt;Incase you want to follow through you should have your React app and styled-components dependencies installed with &lt;code&gt;npx create-react-app app-name&lt;/code&gt; and &lt;code&gt;npm install styled-components&lt;/code&gt; or &lt;code&gt;yarn add styled-components&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I would be sharing images of the three naming conventions i.e &lt;em&gt;Test.jsx, Test.styles.js, Terminal message &amp;amp; Output&lt;/em&gt;. Let's start with Camel Case naming convention:&lt;/p&gt;

&lt;p&gt;camelCase in action:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Test.jsx &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%2Fyew9zq79i6il3mfuo7by.jpg" alt="CC Test.jsx Component" width="513" height="329"&gt;
&lt;/td&gt;
&lt;td&gt;Test.styles.js &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%2Fdaaah68bjt3vfcogqfp5.jpg" alt="CC Test.styles.js" width="415" height="262"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Terminal &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%2Fh7axjy7hzsuxztgq3r4w.jpg" alt="CC Terminal" width="540" height="143"&gt;
&lt;/td&gt;
&lt;td&gt;Localhost Result &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%2Foeeheh64m3k4izm8igd3.jpg" alt="CC localhost result" width="591" height="334"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From the localhost result we can see that our style-components variable doesn't have an effect as we have an error in our terminal, so the &lt;em&gt;camelCase&lt;/em&gt; naming convention should not be a choice when creating styled-components variables.&lt;/p&gt;

&lt;p&gt;snake_case in action:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Test.jsx &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%2Ffgbpddg9yd1sbdfy69it.jpg" alt="SC Test.jsx" width="512" height="320"&gt;
&lt;/td&gt;
&lt;td&gt;Test.styles.js &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%2Fgto58hebsee0x5myv7dr.jpg" alt="SC styles.js" width="402" height="272"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Terminal &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%2Fm8rwab1gre1z7xvu6a3e.jpg" alt="SC Terminal" width="512" height="100"&gt;
&lt;/td&gt;
&lt;td&gt;Localhost Result &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%2F94h3z5qjfkh9qrjsygsb.jpg" alt="SC localhost result" width="591" height="334"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Again looking at the localhost result we can see that our style-components variable doesn't have an effect as we have an error in our terminal, so the &lt;em&gt;snake_case&lt;/em&gt; naming convention should not be a choice when creating styled-components variables.&lt;/p&gt;

&lt;p&gt;PascalCase in action:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Test.jsx &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%2F5bjeianxs6nrjdxka6ja.jpg" alt="PC Test.jsx" width="506" height="323"&gt;
&lt;/td&gt;
&lt;td&gt;Test.styles.js &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%2Fhcfp58tykir91njhg5ol.jpg" alt="PC styles.js" width="404" height="264"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Terminal &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%2Fd2xtl7g9aamrj3ysywn3.jpg" alt="PC Terminal" width="446" height="100"&gt;
&lt;/td&gt;
&lt;td&gt;Localhost Rest &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%2Fubgksd5gqncpolo9fb1w.jpg" alt="PC localhost result" width="297" height="170"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;🎉Hurray!!! Our terminal is free from error and the localhost result shows the style from our styled-components has an effect on the Test component.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;From our practical we can conclude that the PascalCase naming convention is the right naming convention when creating styled-components variables to utilize with ReactJs.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If there are any other mistakes you've come across when using styled-components feel free to share them in the comment section. &lt;/p&gt;

&lt;p&gt;Thanks for reading and Happy Coding!!!&lt;/p&gt;

</description>
      <category>react</category>
      <category>styledcomponents</category>
    </item>
    <item>
      <title>Hacktoberfest 2021 Experience</title>
      <dc:creator>Edun Elijah </dc:creator>
      <pubDate>Sun, 31 Oct 2021 07:38:13 +0000</pubDate>
      <link>https://dev.to/devcreed/hacktoberfest-2021-experience-8n3</link>
      <guid>https://dev.to/devcreed/hacktoberfest-2021-experience-8n3</guid>
      <description>&lt;p&gt;My first Hacktoberfest experience and it has been an interesting one so far. I got the opportunity to be involved with my local tech community during this period, working more with GIT and Github. I will be finishing this edition with 6 PRs .....😊. I'm hoping to participate in the upcoming Hacktoberfest editions.💪&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>opensource</category>
      <category>github</category>
    </item>
  </channel>
</rss>
