<?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: Ayomide Oluwatola</title>
    <description>The latest articles on Forem by Ayomide Oluwatola (@mikeya-yo).</description>
    <link>https://forem.com/mikeya-yo</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%2F1682605%2Fbd6c0272-138c-4821-871a-70d9e389fb1b.png</url>
      <title>Forem: Ayomide Oluwatola</title>
      <link>https://forem.com/mikeya-yo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mikeya-yo"/>
    <language>en</language>
    <item>
      <title>Next.js Vs React.Js: What you need to know</title>
      <dc:creator>Ayomide Oluwatola</dc:creator>
      <pubDate>Fri, 28 Jun 2024 09:39:13 +0000</pubDate>
      <link>https://forem.com/mikeya-yo/nextjs-vs-reactjs-what-you-need-to-know-319k</link>
      <guid>https://forem.com/mikeya-yo/nextjs-vs-reactjs-what-you-need-to-know-319k</guid>
      <description>&lt;p&gt;React and NextJS are tools becoming more popular this days, with a lot of similarities, and people often ask what are the diffences between this two and which one should i use?&lt;/p&gt;

&lt;p&gt;Before we can talk about the differences between this two we need to first understand what exactly they are.&lt;/p&gt;

&lt;h2&gt;
  
  
  React
&lt;/h2&gt;

&lt;p&gt;React is a frontend library for building user interfaces with JavaScript and JSX. React works based on components, which are JavaScript functions that return JSX.&lt;br&gt;
React also makes use of the Virtual DOM, which uses state management  and only  re-renders components that changes instead of the whole DOM.&lt;br&gt;
React also provides us with hooks, such as useState and more which are used to basically to control state changes and side effects.&lt;/p&gt;

&lt;h2&gt;
  
  
  NextJS
&lt;/h2&gt;

&lt;p&gt;Next.js on the other hand isn't a library, but a React framework, NextJS uses React but only as a framework of React. Next.js offer's a lot of additional features to React such as server side rendering, static optimization e.t.c. &lt;br&gt;
Next.js also allows you to build a complete full stack project with it's API routes&lt;/p&gt;

&lt;h2&gt;
  
  
  Major Differences
&lt;/h2&gt;

&lt;h3&gt;
  
  
  React
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;React is a JavaScript Library&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In React all JavaScript Code is loaded by the browser&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React is developed by Meta&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can only build frontend user interfaces with React&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Next.js
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Next.js is a React framework&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next.js supports server side rendering, meaning not all JavaScript code is loaded by the browser&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next.js is developed by Vercel&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next.js allows you to build a complete full stack, thanks to it's API routes&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Use React if you want to build a simple web interface, that has a continous life state changing.&lt;br&gt;
But for Larger applications requiring complex backends, use Next.js to offer server side rendering and all in one full stack capabilities.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: For tech internship's you can visit &lt;a href="https://hng.tech/internship"&gt;hng.tech/internship&lt;/a&gt; or Jobs at &lt;a href="https://hng.tech/hire"&gt;hng.tech/hire&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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