<?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>Forem: Mario Lemus</title>
    <description>The latest articles on Forem by Mario Lemus (@mariolemus).</description>
    <link>https://forem.com/mariolemus</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%2F824298%2Fa06ed36a-78a8-46e9-830f-7227c1b97de1.jpg</url>
      <title>Forem: Mario Lemus</title>
      <link>https://forem.com/mariolemus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mariolemus"/>
    <language>en</language>
    <item>
      <title>I'll code a TikTok video scrapper, so let me tell you why</title>
      <dc:creator>Mario Lemus</dc:creator>
      <pubDate>Sat, 27 Aug 2022 02:35:18 +0000</pubDate>
      <link>https://forem.com/mariolemus/ill-code-a-tiktok-video-scrapper-so-let-me-tell-you-why-1mn8</link>
      <guid>https://forem.com/mariolemus/ill-code-a-tiktok-video-scrapper-so-let-me-tell-you-why-1mn8</guid>
      <description>&lt;p&gt;Yeah! as the title of this article suggests. I will be creating a TikTok video scrapper, so &lt;strong&gt;the biggest question here, is why?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dWgiYxu9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661462751652/pR6Zn_Bjz.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dWgiYxu9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661462751652/pR6Zn_Bjz.gif" alt="asking_chicken.gif" width="200" height="197"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To be completely honest with you guys. I want to start uploading videos on YouTube, but growing a YT channel from scratch is actually hard and takes a lot of time and dedication &lt;strong&gt;" which I'm surely lacking "&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hKjn-3pp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661463099236/LJZNmOqno.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hKjn-3pp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661463099236/LJZNmOqno.gif" alt="whatever.gif" width="300" height="357"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So after I watched a guy over on TikTok suggesting re-upload TikToks to youtube shorts to get a bunch of subscribers faster, and later deleting them. In order, to start uploading your own content. I gave it a try and &lt;strong&gt;Oh Lord! to my surprise It actually works&lt;/strong&gt; one of my videos got &lt;strong&gt;9k views on the first-day&lt;/strong&gt;, and even I got more than 20 subscribers on the first day, as well. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KWITJwzl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661463717563/TyA8vxfEx.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KWITJwzl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661463717563/TyA8vxfEx.gif" alt="doubt.gif" width="400" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is some proof:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B-JEvxOo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661464082779/8eXrxM-tU.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B-JEvxOo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661464082779/8eXrxM-tU.png" alt="fitness_cat_statistics.png" width="780" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is my channel name and link as well: &lt;a href="https://www.youtube.com/channel/UCr3tKe4wjqDsgu743QUFLDw/videos" rel="noopener noreferrer"&gt;YT got memes?&lt;/a&gt;, by the way, I upload memes:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bz5d4uE6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661464142329/iDRUuwFF5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bz5d4uE6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661464142329/iDRUuwFF5.png" alt="got_memes_logo.png" width="260" height="103"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So when I see this working I decided to automate the process so I can accelerate the process even more, and after thinking a lot I decided to do it, and that's why you see this post. Because I came to a conclusion and of course seeing that there is an ongoing contest by Hashnode.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I decided to create a series following the process of becoming a YouTuber in a short period of time&lt;/strong&gt; of course, all the series will be more oriented to the technical standpoint and not the marketing one (but if you want something related to marketing in tech, comment it). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MFShbHH7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661464919906/eh_VsQUmk.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MFShbHH7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://cdn.hashnode.com/res/hashnode/image/upload/v1661464919906/eh_VsQUmk.gif" alt="bye_homero.gif" width="500" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So to close the introduction of this series, I want to spam you with my personal blog in which I will be updating the series faster than I will do in Hasnode.&lt;/p&gt;

&lt;p&gt;😝⚡ Here is the link: &lt;a href="https://www.thismar.xyz/" rel="noopener noreferrer"&gt;https://www.thismar.xyz/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Why I can't decide how to convert a string into a number in JS</title>
      <dc:creator>Mario Lemus</dc:creator>
      <pubDate>Sun, 07 Aug 2022 23:09:00 +0000</pubDate>
      <link>https://forem.com/mariolemus/why-i-cant-decide-how-to-convert-a-string-into-a-number-in-js-43fi</link>
      <guid>https://forem.com/mariolemus/why-i-cant-decide-how-to-convert-a-string-into-a-number-in-js-43fi</guid>
      <description>&lt;p&gt;As mentioned in the title of this post. We will be exploring a few methods you can use to cast strings into numbers and avoid being trapped in a hell of methods.&lt;/p&gt;

&lt;h2&gt;
  
  
  parseInt( ) vs parseFloat( )
&lt;/h2&gt;

&lt;p&gt;First of all, when talking of string casting we can't avoid mentioning these very well-known methods.&lt;/p&gt;

&lt;p&gt;So, for the ones who are new to javascript, let me tell you, that these methods are used to convert a string into an integer number "parseInt( )" or a float number "parseFloat( )" respectively.&lt;/p&gt;

&lt;p&gt;But, there is a tiny problem with both, you have to be aware of the type of number you want to operate with from the beginning because parsing to an incorrect number can produce a lot of mistakes, that can be super harmful to your business.&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;stringNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;45.1&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;

&lt;span class="c1"&gt;// output -&amp;gt; 45 (is not a string anymore)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stringNumber&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 

&lt;span class="c1"&gt;// output -&amp;gt; 45.1 (is not a string anymore, and it is float)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;float&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;parseFloat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stringNumber&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Number( )
&lt;/h2&gt;

&lt;p&gt;This is directly an instance of the javascript's Number class.&lt;/p&gt;

&lt;p&gt;Number( ), is one of the most recommended ways to parse strings in numbers since is legible enough to be in large-scale code bases and its functionality can be clearly understood by its name also formats a string in Integer or Float automatically.&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;stringIntegerNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;45&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;stringFloatNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;45.1&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;

&lt;span class="c1"&gt;// output -&amp;gt; 45 (is not a string anymore)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;int&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;stringIntegerNumber&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// output -&amp;gt; 45.1 (is not a string anymore, and it is float)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;float&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;stringFloatNumber&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Unary operator (+)
&lt;/h2&gt;

&lt;p&gt;Maybe in this selection of methods to transform a string into a number. This is definitely the weirdest, since isn't actually a JavaScript method or class but, instead a special operator.&lt;/p&gt;

&lt;p&gt;As Number( ), the unary operator does the same functionality, but it has better performance if the people you work with have never read JavaScript's documentation this way can be not enough legible.&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;stringIntegerNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;45&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;stringFloatNumber&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;45.1&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;

&lt;span class="c1"&gt;// output -&amp;gt; 45 (is not a string anymore)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nx"&gt;stringIntegerNumber&lt;/span&gt;

&lt;span class="c1"&gt;// output -&amp;gt; 45.1 (is not a string anymore, and it is float)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;float&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nx"&gt;stringFloatNumber&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you don't understand what's going on let me tell you that this method works by adding a "+" operator immediately before a string with a numeric value (if there are spaces between "+" is considered the classic sum operator)&lt;/p&gt;

&lt;h3&gt;
  
  
  If you have more methods you feel free to comment on them.
&lt;/h3&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How is really like to be a self-taught dev (harsh truth)</title>
      <dc:creator>Mario Lemus</dc:creator>
      <pubDate>Thu, 28 Jul 2022 19:54:00 +0000</pubDate>
      <link>https://forem.com/mariolemus/how-is-really-like-to-be-a-self-taught-dev-131l</link>
      <guid>https://forem.com/mariolemus/how-is-really-like-to-be-a-self-taught-dev-131l</guid>
      <description>&lt;p&gt;Well, as the title suggest I am actually a self-taught dev, so through this post, I will try to explain from my perspective the pros and cons of being one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pros
&lt;/h2&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%2F2wsda4molu2qdcelmelh.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%2F2wsda4molu2qdcelmelh.gif" alt="pros of being self-taught developer" width="400" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You become more disciplined (generally talking, even in life)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You learn whatever you want, without being subjected to following any scholarly path with unnecessary topics&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can study at whatever time of the day&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*** &lt;em&gt;I didn't explain any of the points above simply because they are self-explanatory&lt;/em&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Cons
&lt;/h2&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%2F797ym3q6yck0aeklecri.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%2F797ym3q6yck0aeklecri.gif" alt="cons of being self-taught developer" width="500" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You don't have tutors and even classmates, which makes it very difficult to determine your own capabilities and weaknesses&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You don't have any guide, so you keep learning unnecessary stuff, and wasting your time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You get frustrated after a time of being self-taught because when you explore a topic you almost always find out that there are a lot of other issues you don't know and even complete ignore, which makes really hard to know if you are able to fit in a job position (finally declining in impostor syndrome)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you are completely self-taught and you don't have any related diploma, you have to be the best developer while trying to search job, otherwise you are not going to be taken seriously by anyone (mainly, while trying to find your first job)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;**Being entirely self-taught is harder than it seems, and I don't really recommend *&lt;/em&gt;* &lt;/p&gt;

&lt;h3&gt;
  
  
  Conclution
&lt;/h3&gt;

&lt;p&gt;If you are able to study at a university, or even a Bootcamp do it. You will surely avoid a lot of troubles, and if you decide to go self-taught, good luck and keep strong even if it is a hard way to get the knowledge I have to say that it is gratifying.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Simplified Next.js, The modern React.js Framework #2</title>
      <dc:creator>Mario Lemus</dc:creator>
      <pubDate>Wed, 02 Mar 2022 21:34:44 +0000</pubDate>
      <link>https://forem.com/mariolemus/simplified-nextjs-the-modern-reactjs-framework-2-169e</link>
      <guid>https://forem.com/mariolemus/simplified-nextjs-the-modern-reactjs-framework-2-169e</guid>
      <description>&lt;h1&gt;
  
  
  Built-in functionalities (Navigation, Link, Code splitting, and prefetching)
&lt;/h1&gt;

&lt;p&gt;This is the continuation of the previous post, where we get started with the installation and basic info you need in order to use Next.js, for your projects. In this new chapter, we´ll be learning some Next.js, built-in useful basic functionalities.&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%2Fffjg4cqrswkrb7xhh2jv.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%2Fffjg4cqrswkrb7xhh2jv.gif" alt="Image description" width="334" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Navigation between pages
&lt;/h2&gt;

&lt;p&gt;Here you see one of the most basic, but useful Next.js functionalities. But You will not be surprised after see in it, because is something I showed you in the previous Next.js related post here you have it if you haven´t seen it yet 👏👉👉Simplified Next.js, The modern React.js Framework #1&lt;/p&gt;

&lt;p&gt;What I am talking about is simply the structure of files that go into the Pages/ folder, and that is used instead of the react-router-dom library to navigate in your web app user views.&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%2Fmvebst4gq561enph5xyl.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%2Fmvebst4gq561enph5xyl.gif" alt="Image description" width="480" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here you have it 👇🙌:&lt;/p&gt;

&lt;h3&gt;
  
  
  files structure
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Pages/index.js → (is a file that represents your homepage, (“ / “, in your browser URL bar)and is created by default by Nex.js)&lt;/li&gt;
&lt;li&gt;Pages/products.js → (is a normal view, and represents (“ /products “, in your browser URL bar) )&lt;/li&gt;
&lt;li&gt;Pages/about.js → (is a normal view, and represents (“ /about “, in your browser URL bar) )&lt;/li&gt;
&lt;li&gt;Pages/contact.js → (is a normal view, and represents (“ /contacts “, in your browser URL bar) )&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When you created these components (about.js, contact.js), automatically you have available the same file’s name as your routes and you can use them directly on your page like this: 👇&lt;/p&gt;

&lt;h2&gt;
  
  
  Link Component
&lt;/h2&gt;

&lt;p&gt;If you have previously used React.js, this will be very familiar to you, after all, is a component that makes React.js normally behave as a SPA application, and in Next.js the functionality doesn´t work differently either. The unique difference between both is that in React you normally install react-router-dom from npm and in Next.js is something that already comes with it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;import Link from 'next/link'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And you use it like this:&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;Link href="/about"&amp;gt;
  &amp;lt;a&amp;gt;about page&amp;lt;/a&amp;gt;
&amp;lt;/Link&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Is important to notice that an anchor 👉👉&lt;a&gt;&lt;/a&gt;👈👈 HTML tag is used in the Link component to work correctly as a SPA.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code splitting and prefetching
&lt;/h2&gt;

&lt;p&gt;If you know React.js lazy loading this basically means Next.js automatically does the lazy loading process and you don’t have to care about it. and if you ask, how do you control when the code loads when is needed, let me say you that again Next.js takes care of it, by using prefetching a functionality that automatically detects when a  is on the viewport and prepares itself to load the component the user is requesting.&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%2F5wxembt6314rlnuz2prg.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%2F5wxembt6314rlnuz2prg.gif" alt="Image description" width="498" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you don’t know what the heck, is React lazy loading, then let me explain you quickly. Lazy loading is a technique to optimize your code by splitting the code into small chunks of information that does not load automatically after the page first renders in the browser, avoiding unnecessary code loading in the client and most importantly avoiding excessive loading times for users.&lt;/p&gt;

&lt;p&gt;That it´s for today. Don’t forget if you want to help me do it via👌🧐&lt;br&gt;
☕BuyMeACoffee.☕&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Simplified Next.js, The modern React.js Framework #1</title>
      <dc:creator>Mario Lemus</dc:creator>
      <pubDate>Wed, 02 Mar 2022 17:24:40 +0000</pubDate>
      <link>https://forem.com/mariolemus/simplified-nextjs-the-modern-reactjs-framework-1-34i</link>
      <guid>https://forem.com/mariolemus/simplified-nextjs-the-modern-reactjs-framework-1-34i</guid>
      <description>&lt;h1&gt;
  
  
  Getting started
&lt;/h1&gt;

&lt;p&gt;In this series of posts, I will be teaching you. How to easily start learning Next.js. By simplifying the learning process, being super practical and avoiding over-technical terms.&lt;/p&gt;

&lt;p&gt;I hope you, like it. And give it a try, maybe you will discover something awesome and fall in love with this modern React.js Framework .🐱‍👤💕&lt;/p&gt;

&lt;p&gt;To begin with, execute the following command on your terminal:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx create-next-app@latest&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Or:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;yarn create next-app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After the installation finish, go to the folder you created and open it on your favorite IDE. Then execute the following command, to start the development server.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm run dev&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And voilà, you just begin using Next.js 🎉🎉✨&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%2Fvfvmg6ps8pq9ec4buf55.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%2Fvfvmg6ps8pq9ec4buf55.gif" alt="Image description" width="480" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to begin personalizing your views.&lt;/p&gt;

&lt;h2&gt;
  
  
  Go to Pages/index.js
&lt;/h2&gt;

&lt;p&gt;There you will see your home page component with some Next.js extra info.&lt;/p&gt;

&lt;p&gt;By the way, by putting 👉👉.js👈👈, files into Pages/, folder. You automatically are using built-in Next.js routing, so YOU DON´T REQUIRE REACT-ROUTER-DOM INSTALLATION AND CONFIGURATION.&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%2Fc6zc22pb8za6j8q5whfs.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%2Fc6zc22pb8za6j8q5whfs.gif" alt="Image description" width="480" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here you have it. 🙇‍♂️👇&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create about.js into Pages/ and write some test data, like Hello World! From About File.&lt;/li&gt;
&lt;li&gt;Then go to your browser and type, in your URL bar, localhost:3000/about.&lt;/li&gt;
&lt;li&gt;Then you will be able to see automatically your about.js info displayed in your browser.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Well, this is the end of the first part 😭😫, If you would like to support my content go to: &lt;a href="//buymeacoffee.com/MarioLemusDev"&gt;BuyMeACoffee&lt;/a&gt;, and buy me a coffee! 😁😁👌🙌&lt;/p&gt;

</description>
      <category>react</category>
      <category>nextjs</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
