React | Talking about yarn and more...
Published: 2020-12-17 00:44:41

Hello developers! Today I would like to talk about how to run your first react application and give you a few pieces of advice on how to start the creative process with a tool that would help you organize your ideas. But first, we need to talk about: 

<pre><code>yarn start</code></pre>

In my last blog, we learn about NPM and how we need it to use <code>create-react-app</code> but another option is using <code>yarn start create-react-app</code>. I'm not going to start with all the technicalities and differences between <code>npm</code> and <code>yarn</code>. Let's say that both get the job done. If by any chance you have problems using the <code>npm</code> package manager try using <code>yarn</code> instead. YARN is available as an NPM package. At this point NPM should be already installed in your system so, you can install it by running the following command: 

<pre><code>npm install yarn</code></pre> 

...and that's it! I can't say one is better than the other. NPM usually is the default choice for many developers because like we discuss before installing Node.js would automatically install NPM on your system. YARN was born with the idea of fixing issues presented in NPM in the past, but doing some research online I learn the NPM and YARN are actually pretty tight in that race. If you want to learn more about the differences between YARN and NPM I strongly recommend this great <a href="https://www.whitesourcesoftware.com/free-developer-tools/blog/npm-vs-yarn-which-should-you-choose/">article</a> writing by Guy Bar-Gil.

<strong>Now, let's go back to...</strong>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zzjyi9vb2fv84378uzje.png)

Now that everything is amazing, properly installed and your new React app is created it's time to run your application. 

First, be sure you're in the correct directory. If you're using VS Code your terminal would be open by default in the right one. In your terminal, run the following command: 

<pre><code>npm start</code></pre>

After that, your new React app would open in your default browser (if your default browser is not Chrome stop reading this and change it <strong>NOW</strong>. Thank you!) Your screen should look something like this: 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zxyj7uvp4mfv4s6wybq7.png)<br>

Congratulations! Your new React App is installed and running, but now what? If you're anything like me you would need a place where you can organize all your extraordinary ideas for this application. For me, that place is <a href="https://www.trello.com">Trello.com</a> Trello is a collaboration tool that organizes your projects into boards. In one glance, Trello tells you what's being worked on, who's working on what, and where something is in a process.
 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ydy5y7bhkkzhnyqe4ksk.png)

Imagine a giant whiteboard filled with lists of sticky notes! Let's be honest, you're a web developer. You own a whiteboard and hundred of sticky notes! For example, React have something called <strong>containers</strong> <i>(we would talk about that pretty soon!)</i>, and those containers are full of actions. Trello really helps me organize my ideas by container. Thanks to that I can work more effectively on my application and the best part, it's <strong>FREE</strong>. 

<i>If you need more help using Trello.com this <a href="https://https://blog.trello.com/beginner-tips-for-using-trello">blog post</a> is a most.</i>

And that's it for today! See you next week where we will be talking more about the parts of our React App.

Adios!