<?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: K(e)ith N. Henry</title>
    <description>The latest articles on DEV Community by K(e)ith N. Henry (@kithenry).</description>
    <link>https://dev.to/kithenry</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%2F880259%2F9a9706f1-f69d-415c-8109-aeaec8b1496a.jpeg</url>
      <title>DEV Community: K(e)ith N. Henry</title>
      <link>https://dev.to/kithenry</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kithenry"/>
    <language>en</language>
    <item>
      <title>Create Counter App With React</title>
      <dc:creator>K(e)ith N. Henry</dc:creator>
      <pubDate>Wed, 15 May 2024 16:44:51 +0000</pubDate>
      <link>https://dev.to/kithenry/create-counter-app-with-react-3dih</link>
      <guid>https://dev.to/kithenry/create-counter-app-with-react-3dih</guid>
      <description>&lt;p&gt;Hi there :wave. In this article I'll take you through the steps of creating a counter application from React.&lt;/p&gt;

&lt;p&gt;Prerequisites&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;NPM installed&lt;/li&gt;
&lt;li&gt;Create-react-app installed&lt;/li&gt;
&lt;li&gt;Basic understanding of React's useState hook.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Agenda&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Setting up empty application&lt;/li&gt;
&lt;li&gt;Deleting un required files&lt;/li&gt;
&lt;li&gt;Creating state variables and importing state&lt;/li&gt;
&lt;li&gt;Creating call back functions&lt;/li&gt;
&lt;li&gt;Adding JSX to Counter Component&lt;/li&gt;
&lt;li&gt;A little bit of copy pasting for css&lt;/li&gt;
&lt;li&gt;Done.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Okay, I guess you already have the prerequisites in check. &lt;/p&gt;

&lt;p&gt;First, let's create an empty react application. &lt;/p&gt;

&lt;p&gt;After choosing in which folder you will create the application, enter the following command in your terminal application &lt;code&gt;npx create-react-app counterapp&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Execution of this command will take some time to complete but once your done, you'll have something like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fakan2sojkgg5s6hgqf2e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fakan2sojkgg5s6hgqf2e.png" alt="Empy Application Created" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now moving on to the next step. Let's delete all these files we won't need for this app. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk4s5c2s6q7ln4zqek99j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk4s5c2s6q7ln4zqek99j.png" alt="Useless files deleted" width="800" height="109"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I did my deletions from terminal but you can do yours from your IDE if you want to.&lt;/p&gt;

&lt;p&gt;Move to the index.js file and delete all the lines higlighted in the snap below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr3mkrjqydh74cpo84gy2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr3mkrjqydh74cpo84gy2.png" alt="Lines to delete from index.js file" width="800" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's line 5 and 17&lt;/p&gt;

&lt;p&gt;And from the App.js file delete logo import and all the stuff in the return clause of the App component, it should look like so after you are done;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7wyd4gcx9b5klb2rcze3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7wyd4gcx9b5klb2rcze3.png" alt="Clean App.js file" width="800" height="155"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now I hope you are still in the App.js file, let's start building the application. &lt;/p&gt;

&lt;p&gt;First, let's create the variable counterVar right at the top of the App functional component to hold the counter's value. Give it a start value of 0.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0olia8ftyw11pi493c42.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0olia8ftyw11pi493c42.png" alt="Variable Counter Var created" width="698" height="104"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Since we are using state, modify counter to use list destructuring and include a name for the function we shall use to update counter as a state variable. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbe3wprwcphjrcyi99m1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbe3wprwcphjrcyi99m1.png" alt="CounterVar as State Variable" width="800" height="114"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Speaking of state, let's import the &lt;code&gt;useState&lt;/code&gt; hook from React. We can't use the hook minus importing it. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztibfss1vdw9sow2ad4p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztibfss1vdw9sow2ad4p.png" alt="Imported the UseState Hook" width="770" height="89"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ok, now back to the component. Let's set the state's initial state to 0.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2l5huc100w67usvb5s1p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2l5huc100w67usvb5s1p.png" alt="Initializing CounterVar with 0" width="800" height="114"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next will be creating the call back functions. The functions that will be triggered when the buttons of our counter application are clicked.&lt;/p&gt;

&lt;p&gt;These will be placed right under the state variable we just defined. &lt;/p&gt;

&lt;p&gt;Let's first create the function to increase counter. &lt;/p&gt;

&lt;p&gt;When we come to creating the decrease function, it won't be any different so we'll copy from this one and only change a few things.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftye8kvixvez250bjf5r0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftye8kvixvez250bjf5r0.png" alt="Increment CallBack" width="800" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, the increment function uses the state updater function. The state updater function is passed an arrow function where the current value of state is passed and the return value is that current value incremented by one. &lt;/p&gt;

&lt;p&gt;Interested in why an arrow function rather than state itself is passed to the state updater function, &lt;a href="https://dev.to/serifcolakel/mastering-usestate-a-guide-to-avoiding-common-pitfalls-in-react-development-ibp"&gt;this article&lt;/a&gt; could be of help to you.&lt;/p&gt;

&lt;p&gt;Ok, now to create the decrement function we won't do anything new. Copy paste the increment function and only change increment to decrement and where there is an addition sign, replace with a subraction sign. That's simple.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffrislbnfyojajdmguas5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffrislbnfyojajdmguas5.png" alt="Both call back functions created" width="782" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Moving on to write the html for our application. Since the code isn't much, we shall insert it directly into the App component. We shall not create a separate component for it.&lt;/p&gt;

&lt;p&gt;Ok, so in the return clause of the App functional component. Insert the following html.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  &amp;lt;div className='App'&amp;gt;
          &amp;lt;button className='decrease' onClick={decrease}&amp;gt;Decrement&amp;lt;/button&amp;gt;
               &amp;lt;span&amp;gt;{counterVar}&amp;lt;/span&amp;gt;
          &amp;lt;button className='increase' onClick={increase}&amp;gt;Increment&amp;lt;/button&amp;gt;
          &amp;lt;/div&amp;gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We have 2 buttons with a span holding the counter value in between. We use JSX which is denoted by the curly braces to dynamically reflect what is held in the variable in our html code. &lt;/p&gt;

&lt;p&gt;The call back functions for the buttons are given , for each button , to the &lt;code&gt;onClick&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Now the main stuff is out of the way. Our lifeless dull app should now be able to work.&lt;br&gt;
Close App.js and execute &lt;code&gt;npm run start&lt;/code&gt; to see how things are so far. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsjyzblaryh9ajdadg6ad.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsjyzblaryh9ajdadg6ad.gif" alt="Functional App" width="401" height="298"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's give it some life. We shall now copy paste some CSS into the App.css file. Delete everything you'll  find there and add the css in the code block below. Ctrl-C Ctrl-V. Easy pizzy Nice and Easy.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
        background-color: whitesmoke;
}


#root, .App {

        display: flex;
        justify-content: center;
        align-items:center;
}       


.App {  
        margin: 40vh; 

}

span {
        margin: 0 20px;
        font-size: 1.9em;
}

button {                
        padding: 20px;
        padding-left: 40px;
        width: 220px;
        color: white;
        font-size: 1.1em;
}

.decrease {
        background: red;
}       

.increase {
        background: green;
}



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's give it a run and see how it turns out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fysd3uyrfjm7bywyxj8m7.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fysd3uyrfjm7bywyxj8m7.gif" alt="Designed App" width="641" height="298"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mine is working. I hope yours is to. If it ain't, please go through  the previous steps and find out if you did not miss anything. &lt;/p&gt;

&lt;p&gt;If the error persists, reach out to me in the comment section or better; utilize the internet and learn some debugging while at it. &lt;/p&gt;

&lt;p&gt;What did we learn in this article. We applied our knowledge on react , useState hook in particular to build a basic counter application. &lt;/p&gt;

&lt;p&gt;You can go on from their to build more creative applications with &lt;code&gt;useState&lt;/code&gt; and other features React has to offer.&lt;/p&gt;

&lt;p&gt;If you got any comments, corrections or suggestions. I am all ears in the comment section. Thanks for reading and  don't forget to subscribe if you found this helpful.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/6MpF7swF8TE"&gt;
&lt;/iframe&gt;
 &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>react</category>
    </item>
    <item>
      <title>Create Your First React App</title>
      <dc:creator>K(e)ith N. Henry</dc:creator>
      <pubDate>Mon, 06 May 2024 16:04:45 +0000</pubDate>
      <link>https://dev.to/kithenry/create-your-first-react-app-5316</link>
      <guid>https://dev.to/kithenry/create-your-first-react-app-5316</guid>
      <description>&lt;p&gt;Ready to create your first app in React ? I thought so.&lt;/p&gt;

&lt;p&gt;Here's the plan;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Installing latest version of npm&lt;/li&gt;
&lt;li&gt;Installing create-react-app &lt;/li&gt;
&lt;li&gt;Creating a react app &lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's get right into it...&lt;/p&gt;




&lt;h3&gt;
  
  
  Installing npm
&lt;/h3&gt;

&lt;p&gt;Before using React, you'll need to have &lt;code&gt;node js&lt;/code&gt; installed on your system.&lt;/p&gt;

&lt;p&gt;Linked &lt;a href="https://programmers.io/blog/web-development-using-reactjs-with-nodejs/"&gt;here&lt;/a&gt; is a source that could explain why npm is needed for React should you like to learn more. &lt;/p&gt;

&lt;p&gt;For your node installation, you will use node version manager to have some control which node version gets installed. In this post, I'll install the latest version which is 22, at least as per the time I am writing this. &lt;/p&gt;

&lt;p&gt;Paste the code below into your terminal to install node using nvm.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# installs NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# download and install Node.js
nvm install 22

# verifies the right Node.js version is in the environment
node -v # should print 22.x.x

# verifies the right NPM version is in the environment
npm -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the &lt;code&gt;nvm&lt;/code&gt; command fails to run the first time. You might have to close your terminal and reopen it, then retry the installation by running;&lt;br&gt;
&lt;code&gt;nvm install 22&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To confirm if your installation was successful, executing the command &lt;code&gt;node --version&lt;/code&gt; should  print out version 22;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1s8j3ol6qyq5do6ewjqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1s8j3ol6qyq5do6ewjqd.png" alt="Successful npm installation snapshot" width="558" height="47"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Moving  on to the next step.&lt;/p&gt;
&lt;h3&gt;
  
  
  Installing create-react-app.
&lt;/h3&gt;

&lt;p&gt;I guess like me, you don't like wasting waste time going through the mind boggling steps involved in creating React application configurations. For that reason, we'll use React's utility &lt;code&gt;create-react-app&lt;/code&gt; for this post. &lt;/p&gt;

&lt;p&gt;Want to know how to do all the  configurations  witout  utilities like &lt;code&gt;create-react-app&lt;/code&gt; or &lt;a href="https://www.sitepoint.com/best-create-react-app-alternatives-for-different-use-cases/"&gt;any other similar ones&lt;/a&gt;? &lt;a href="https://blog.bitsrc.io/create-react-app-without-create-react-app-b0a5806a92"&gt;Here's&lt;/a&gt;a tutorial that could help.&lt;/p&gt;

&lt;p&gt;Continuing with installing &lt;code&gt;create-react-app&lt;/code&gt;, run the command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install create-react-app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you face any issues with this command, you can reach out to me in the comment section and I might be able to help. And, try searching for a solution from the so many helpful communities online.&lt;/p&gt;
&lt;h3&gt;
  
  
  Creating the app
&lt;/h3&gt;

&lt;p&gt;Now to create the app, switch directory to the folder in which you wish to create your application and type the command;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx create-react-app myapp&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;Running that will create an app under the name &lt;code&gt;myapp&lt;/code&gt;. &lt;br&gt;
You can replace &lt;code&gt;myapp&lt;/code&gt; with any other name of your choice, it doesn't carry any significance. On running the command, you should get a response similar to this. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9qp55wl90t1agbz8eky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9qp55wl90t1agbz8eky.png" alt="App Created" width="625" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Listing the directiories in your current directory should now display a new folder under the name you specified in the previously ran command.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs6g50gvakz1rkrsusyej.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs6g50gvakz1rkrsusyej.png" alt="Folders in directory" width="374" height="57"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Switch to your newly created app directory and start your the app with;&lt;br&gt;
&lt;code&gt;npm start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Your default web browser should open app with a rendering of your first React application!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj79cxc4ccfun71i89tcp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj79cxc4ccfun71i89tcp.png" alt="App rendered" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cool, isn't it! What did you learn in this post;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You installed node js with nvm&lt;/li&gt;
&lt;li&gt;You installed React's create-react-app utility&lt;/li&gt;
&lt;li&gt;You created your first React application, probably.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for following along and see you in the next!&lt;/p&gt;



&lt;p&gt;&lt;em&gt;Did you learn something from this article? Do you have something  you would like to add to it? Something to correct or anything else to say about this post? I'd be happy to know. Please leave a comment in the comment section and if you liked the post, don't forget to like and share to anyone you think might need it.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Qpa1MD8eJa4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>programming</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
