<?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: Julia Barcelos</title>
    <description>The latest articles on DEV Community by Julia Barcelos (@jubarcelos).</description>
    <link>https://dev.to/jubarcelos</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%2F770371%2F9aee9d60-7dfd-40e9-ac82-83963ab3fe6d.jpeg</url>
      <title>DEV Community: Julia Barcelos</title>
      <link>https://dev.to/jubarcelos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jubarcelos"/>
    <language>en</language>
    <item>
      <title>Everything count</title>
      <dc:creator>Julia Barcelos</dc:creator>
      <pubDate>Thu, 27 Jan 2022 23:01:53 +0000</pubDate>
      <link>https://dev.to/jubarcelos/everything-count-13</link>
      <guid>https://dev.to/jubarcelos/everything-count-13</guid>
      <description>&lt;h2&gt;
  
  
  Have you ever thought your old experiences don’t have value anymore?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;I’m here to prove the opposite.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I’m chemist as some of you already knows, I’ve been working all my professional life in the pharmacy industry. &lt;br&gt;
I'm used to think that what I've learned and knew about my old career doesn’t matter anymore, but I was acting like a fool person and I can prove it! &lt;/p&gt;

&lt;p&gt;I mentioned before about a book who I’m reading, called &lt;strong&gt;“Clean Code”&lt;/strong&gt;.&lt;br&gt;
I was reading and found this awesome page which talked about that and show me &lt;em&gt;&lt;strong&gt;How I was definitely wrong.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The book mentioned the &lt;strong&gt;5S&lt;/strong&gt; system and it’s a universal communication, everyone who worked in the industry knows how important it is to organize all your work place. So everyone could be able to  find everything that they want without hassle.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qthAXyWx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ub0c0dpa2lf7mk37oukv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qthAXyWx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ub0c0dpa2lf7mk37oukv.png" alt="Image description" width="880" height="1118"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This article, which talked about 5S, can be useful if you need some introduction about this topic.&lt;br&gt;
&lt;a href="https://safetyculture.com/topics/5s-lean/#benefits"&gt;5S system&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Who can imagine this could be counted as a hard skill to be a programmer?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Yes, in fact, is.&lt;/strong&gt;&lt;br&gt;
I've figured out I already have this s ability. Also, I know what it is good for and why it is so important.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;And do you know why this is important?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;If not, &lt;strong&gt;don't worry&lt;/strong&gt;, I can be able to explain it based on a little routine simulation. &lt;/p&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;          Please follow my lead...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;p&gt;Can you imagine yourself open a repository and finding all the documents totally unorganized and shuffled?&lt;/p&gt;

&lt;p&gt;You just can't differentiate between &lt;strong&gt;pages and components&lt;/strong&gt;. &lt;br&gt;
Imagine a login page in the same place with an API request...  You might think, what does API request?&lt;/p&gt;

&lt;p&gt;The names of &lt;strong&gt;all these files doesn't tell you anything&lt;/strong&gt;, you spend like 15 minutes just to find yourself in the code and still haven't found which is the main page yet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great... Now you finally found&lt;/strong&gt; a router file, so you could start to figure out  how many pages this project has and how all this works together. From the time you've started till now, that took you about 35 minutes of work day. &lt;/p&gt;

&lt;p&gt;In the &lt;strong&gt;middle of that bad situation&lt;/strong&gt;, you’ve just realized you have a meeting schedule and you might have to go back to the code later because, in fact, you didn't start your task yet.&lt;br&gt;
So, for don't spend almost an hour again, you create a folder and files structure to organize this repository, but guess what?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When finally get done&lt;/strong&gt; arranging all those files and folders, and starting to understand how all these files connect to each other you’ve just reached lunchtime. Could you imagine being in this situation and don’t feeling disgusted, stressed and tired from correcting bad code and bad work?&lt;/p&gt;

&lt;h2&gt;
  
  
  If you have some notion about 5s this never will be happing with your projects.
&lt;/h2&gt;

&lt;p&gt;So, if someone else gets to work on your project those kinds of problems, cited above, &lt;strong&gt;just won't happen&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Stay strong, you and I are qualified to take good job offers.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'll continue look at my previous qualities for this new career and share my experiences with you all, maybe this will help you.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>career</category>
    </item>
    <item>
      <title>Trello tips</title>
      <dc:creator>Julia Barcelos</dc:creator>
      <pubDate>Tue, 18 Jan 2022 22:51:33 +0000</pubDate>
      <link>https://dev.to/jubarcelos/trello-tips-4mfn</link>
      <guid>https://dev.to/jubarcelos/trello-tips-4mfn</guid>
      <description>&lt;h2&gt;
  
  
  I was passed for a bad situation because I used Trello on the app and web at the same time. What happened? Aaah.. a bad thing!
&lt;/h2&gt;

&lt;p&gt;I write a lot of things on the web version and for some reason, I have opened a card to make modifications to my app too. When I closed the web version I saved it, but after that, I saved my app too, for a pure mistake and as a result, I lost everything. OMG!&lt;br&gt;
I lost a little time looking for a solution for my difficulty, tested some options, but now...&lt;/p&gt;

&lt;h2&gt;
  
  
  I can resume this in an only link and share it with you all.
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Using Chrome, install the JSONView Chrome Extension.&lt;br&gt;
Than you just need open this link:&lt;br&gt;
&lt;a href="https://trello.com/1/cards/hpAcP7IS*/actions?filter=updateCard:desc*"&gt;https://trello.com/1/cards/hpAcP7IS*/actions?filter=updateCard:desc*&lt;/a&gt;&lt;br&gt;
This hpAcP7IS is used as a exemple, you need look for your card ID.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;After that, you'll see actions for each time the description was changed. Now you need to see this changed and chose your version.&lt;br&gt;
How can I look at my card ID?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Open on web your card and take a code immediately after /c/ as exemple bellow:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://trello.com/c/**hpAcP7IS/814**-multiple-log-in-credentials"&gt;https://trello.com/c/**hpAcP7IS/814**-multiple-log-in-credentials&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reference: &lt;br&gt;
&lt;a href="https://help.trello.com/article/783-recovering-the-description-of-a-card-that-has-been-changed"&gt;https://help.trello.com/article/783-recovering-the-description-of-a-card-that-has-been-changed&lt;/a&gt;&lt;/p&gt;

</description>
      <category>trello</category>
      <category>tutorial</category>
      <category>tip</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Look yourself.</title>
      <dc:creator>Julia Barcelos</dc:creator>
      <pubDate>Fri, 31 Dec 2021 12:25:50 +0000</pubDate>
      <link>https://dev.to/jubarcelos/end-year-philosophy-5c5h</link>
      <guid>https://dev.to/jubarcelos/end-year-philosophy-5c5h</guid>
      <description>&lt;p&gt;When I think about &lt;strong&gt;my dreams, goals&lt;/strong&gt; and start to see and &lt;strong&gt;feel my conquest&lt;/strong&gt;, to come there, this is a great indication I'm going in the &lt;strong&gt;correct way&lt;/strong&gt;. &lt;/p&gt;




&lt;p&gt;I hated English when I was a kid, teenager, and adult being honest, but I realize I need this language to get my dream, so I started to practice that &lt;strong&gt;every day, I read, speak, write, and now I like it&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--C-5nNvnB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5bcqpp0dy8q089ny07tl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--C-5nNvnB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5bcqpp0dy8q089ny07tl.png" alt="Image description" width="880" height="617"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I watch all my favorite series and film in English. I mark some meetings with old or new friends to practice English, and of course, I'm not fluent yet, I commit mistakes when I write or speak, but definitive I'm better than before. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;I was tired to feel stagnating in that and decided to improve myself&lt;/strong&gt;. 
&lt;/h2&gt;

&lt;p&gt;I've been using this channel to practice my English because is very difficult to maintain my knowledge if I don't practice frequently.&lt;br&gt;
Some weeks I don't practice because I need to focus on another thing, but the most important I did, I set that as a routine, so... I can stop, but I'll return to that.&lt;br&gt;
&lt;strong&gt;I started to feel great doing that just when I stopped to compare myself with other people&lt;/strong&gt; and analyze my stories, by myself.&lt;br&gt;
The same happened when I looked at my olds projects and thought about my learning journey, all my &lt;strong&gt;baby steps&lt;/strong&gt;, and I noticed how math I &lt;strong&gt;grew up&lt;/strong&gt; and improve my expertise. &lt;strong&gt;Everything has a process to pass&lt;/strong&gt;, and everybody needs to know their &lt;strong&gt;time and necessities&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are you compromising with your personal development?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Think about that, make one checklist and do some things to get that, step by step you will feel this same energy. "&lt;/p&gt;

</description>
      <category>learning</category>
      <category>development</category>
      <category>language</category>
      <category>personal</category>
    </item>
    <item>
      <title>React-Router-dom 6! What changed?</title>
      <dc:creator>Julia Barcelos</dc:creator>
      <pubDate>Wed, 22 Dec 2021 14:34:57 +0000</pubDate>
      <link>https://dev.to/jubarcelos/react-router-dom-6-what-changed-4a8</link>
      <guid>https://dev.to/jubarcelos/react-router-dom-6-what-changed-4a8</guid>
      <description>&lt;p&gt;There I was in the middle of my little project when I realized that react router had updated from v5 into v6.&lt;/p&gt;

&lt;p&gt;I made everything right and my routes did not work. That made me so annoyed that I've returned into the old version and finished that project. &lt;/p&gt;

&lt;p&gt;Later after that, I've started to learn about those changes and everything made sense. I could understand what was happening with my routes. Well... That inspired me to start my blog with that headline.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Switch doesn't exist anymore.&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Yes! Now, what we have instead is this functionality called Routes and the syntax is also different.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This was usual on v5 version usage:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Route&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Switch&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react-router-dom&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Home&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;path-to-home&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Cart&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;path-to-cart&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Switch&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;exact&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
       &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Home&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Route&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/cart&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
       &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Cart&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Route&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Switch&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Noticed that rather than passing the component as a child "loose" inside a &lt;code&gt;&amp;lt;Rote/&amp;gt;&lt;/code&gt;, now we need a pass as a prop using this new tag called &lt;code&gt;element&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;exact&lt;/code&gt; doesn't necessary, and an order from routes doesn't matter anymore.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This new version is smarter. &lt;br&gt;
If you have routes with descendant route, what defined in other components, use a trailing * in their path to indicate they match deeply. After doing that, then React-Router-6 will find the better option to route it. So must be easier.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's take a look into how we should be using from now on:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Route&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Routes&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react-router-dom&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Home&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;path-to-home&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Cart&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;path-to-cart&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Routes&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Home&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/cart&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Cart&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="sr"&gt;/&amp;gt;&lt;/span&gt;&lt;span class="err"&gt; 
&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Routes&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's important to say: the use of Routes is mandatory now, so if you have one or more routes, you need to use it inside a &lt;code&gt;&amp;lt;Routes/&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Now &lt;code&gt;&amp;lt;Redirect/&amp;gt;&lt;/code&gt; is called &lt;code&gt;&amp;lt;Navegate/&amp;gt;&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;On top of that, if you have a nested route, you can define it on the same page!!&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// app.jsx&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Route&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Routes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Navegate&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react-router-dom&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Routes&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Navegate&lt;/span&gt; &lt;span class="nx"&gt;_replace_&lt;/span&gt; &lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/welcome&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/welcome/*&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Welcome&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; 
       &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;new-user&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nx"&gt;Welcome&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt;&lt;span class="o"&gt;!&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/p&amp;gt; } /&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Route&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/cart&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Cart&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="sr"&gt;/&amp;gt;&lt;/span&gt;&lt;span class="err"&gt; 
&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Routes&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This &lt;code&gt;replace&lt;/code&gt; on &lt;code&gt;&amp;lt;Navegate&amp;gt;&lt;/code&gt; is optional to use, but semantic correct when used to replace pages. &lt;br&gt;
If you don't use it, the react-router-6 will push the page as well. &lt;em&gt;Have you noticed another change on the above code?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you declare on the same page, you need to use &lt;code&gt;&amp;lt;Outlet/&amp;gt;&lt;/code&gt; to indicate the correct position on the nested page as you can see on the code below:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;
&lt;span class="c1"&gt;// Welcome.jsx&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Link&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Outlet&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react-router-dom&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;Welcome&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
 &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
   &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
     &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;This&lt;/span&gt; &lt;span class="nx"&gt;is&lt;/span&gt; &lt;span class="nx"&gt;you&lt;/span&gt; &lt;span class="nx"&gt;particular&lt;/span&gt; &lt;span class="nx"&gt;space&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/h1&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;     &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Outlet&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
     &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Link&lt;/span&gt; &lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/home&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;Return&lt;/span&gt; &lt;span class="nx"&gt;to&lt;/span&gt; &lt;span class="nx"&gt;Home&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Link&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
   &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/section&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&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;&lt;strong&gt;Advanced changes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;All &lt;code&gt;&amp;lt;Route children&amp;gt;&lt;/code&gt; from the v5 version changed to &lt;code&gt;&amp;lt;Route element&amp;gt;&lt;/code&gt; in v6. This should be as simple as moving your route element from the child position to a named element prop.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Link components&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;NavLink&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react-router-dom&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;NavLink&lt;/span&gt; &lt;span class="nx"&gt;activeClassName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;classes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;active&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/home&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nx"&gt;Home&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/NavLink&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We continue having a &lt;code&gt;&amp;lt;Link/&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;NavLink/&amp;gt;&lt;/code&gt; nothing change with then. However, what did change was the activeClassName props, it doesn't exist&lt;br&gt;
 anymore. &lt;/p&gt;

&lt;p&gt;Instead that, you need to write a most verbose code. You'll need to use an argument with a function to promote this change. And then you find an isActive property inside an object on react-router-6 and do a simple conditional ternary statement to define.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;NavLink&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react-router-dom&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;NavLink&lt;/span&gt; &lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; 
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;thisNav&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;thisNav&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;isActive&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;active&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="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/home&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nx"&gt;Home&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/NavLink&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I never used &lt;code&gt;{ useHistory }&lt;/code&gt; yet, even so, this hook is used to navigate between pages history.&lt;br&gt;
Maybe is because that the name changed to &lt;code&gt;{ useNavigate }&lt;/code&gt;, to turns the code more legible, or clean.&lt;/p&gt;

&lt;p&gt;I've noticed, now we can use a negative number to indicate where we want to send the user. But this I'll explain in another moment.&lt;/p&gt;

&lt;p&gt;For now, they removed this other things, temporary:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hvnfaldT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhaiz0qu2g5sfav7zt3i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hvnfaldT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhaiz0qu2g5sfav7zt3i.png" alt="remove-v6" width="880" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;References: &lt;br&gt;
&lt;a href="https://github.com/remix-run/react-router/releases"&gt;github/react-router&lt;/a&gt;&lt;br&gt;
&lt;a href="https://reactrouter.com/docs/en/v6/getting-started/overview"&gt;react-router-v6&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>news</category>
      <category>css</category>
    </item>
    <item>
      <title>Hello everyone!</title>
      <dc:creator>Julia Barcelos</dc:creator>
      <pubDate>Fri, 17 Dec 2021 20:59:26 +0000</pubDate>
      <link>https://dev.to/jubarcelos/hello-everyone-6o</link>
      <guid>https://dev.to/jubarcelos/hello-everyone-6o</guid>
      <description>&lt;p&gt;I'm starting this blog to share with everyone my discusses abou tech, learning and of course grow up together.&lt;br&gt;
For now I'll share a little simple things about myself and so soon I'll start writhe good articles here.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;about&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="na"&gt;fullname&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;Julia&lt;/span&gt; &lt;span class="nx"&gt;Barcelos&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="na"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="na"&gt;married&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="na"&gt;nerdHobby&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;board&lt;/span&gt; &lt;span class="nx"&gt;games&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="na"&gt;sport&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;beach&lt;/span&gt; &lt;span class="nx"&gt;tennis&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="na"&gt;softSkill&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="nx"&gt;resilience&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;empathy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;communication&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;leadership&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;



</description>
      <category>career</category>
      <category>beginners</category>
      <category>github</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
