<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Karan Joura on Medium]]></title>
        <description><![CDATA[Stories by Karan Joura on Medium]]></description>
        <link>https://medium.com/@karanjoura?source=rss-37010b62f7f4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aEAYcrWgBpVMlBB7NuQwyw.jpeg</url>
            <title>Stories by Karan Joura on Medium</title>
            <link>https://medium.com/@karanjoura?source=rss-37010b62f7f4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:12:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karanjoura/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction To Next.Js]]></title>
            <link>https://medium.com/@karanjoura/introduction-to-next-js-e5ab10e19714?source=rss-37010b62f7f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5ab10e19714</guid>
            <category><![CDATA[nextjs-tutorial]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nextjs-with-seo]]></category>
            <category><![CDATA[nextjs-with-sitemap]]></category>
            <category><![CDATA[nextjs-vs-react]]></category>
            <dc:creator><![CDATA[Karan Joura]]></dc:creator>
            <pubDate>Mon, 22 Aug 2022 05:37:02 GMT</pubDate>
            <atom:updated>2022-08-22T05:42:39.812Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello my dear friends, I know you all are having multiple questions regarding next.js, why we use it, how its different from react.js, and so on.</blockquote><blockquote>Wait! Cool down! I, Karan, is going to resolve each of your queries. Lets begin :)</blockquote><h3>What is Next.Js?</h3><p>Next.js is the React Framework for production. Next.js gives you the best developer experience with all the features you need for production: hybrid static &amp; server rendering, TypeScript support, smart bundling, route pre-fetching, and more. No config needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*W_6L_PEGKOdQ1XYppKSFiA.png" /></figure><p>Created by Vercel, <a href="https://nextjs.org/">Next.js</a> is an open-source and JavaScript framework, allowing you to develop fast and user-friendly web applications and static websites using React. Actually, it is based on Node.js and Babel, and it integrates with React to develop Single Page Applications. This makes server-side convenient and easier.</p><p>Next JS is a JavaScript framework that allows developers to create user-friendly and blazing fast static websites and static web applications with React. Next JS is an open-source, lightweight web development framework for React applications. It allows developers to build server-side rendering.</p><h3>Why Next.Js?</h3><p>To build a complete web application with React from scratch, there are many important details you need to consider:</p><ul><li>Code has to be bundled using a bundler like webpack and transformed using a compiler like Babel.</li><li>You need to do production optimisations such as code splitting.</li><li>You might want to statically pre-render some pages for performance and SEO. You might also want to use server-side rendering or client-side rendering.</li><li>You might have to write some server-side code to connect your React app to your data store.</li></ul><p>Next.js provides a solution to all of the above problems. But more importantly, it puts you and your team in the <a href="https://blog.codinghorror.com/falling-into-the-pit-of-success/">pit of success</a> when building React applications.</p><p>Next.js aims to have best-in-class developer experience and many built-in features, such as:</p><ul><li>An intuitive <a href="https://nextjs.org/docs/basic-features/pages">page-based</a> routing system (with support for <a href="https://nextjs.org/docs/routing/dynamic-routes">dynamic routes</a>)</li><li><a href="https://nextjs.org/docs/basic-features/pages#pre-rendering">Pre-rendering</a>, both <a href="https://nextjs.org/docs/basic-features/pages#static-generation-recommended">static generation</a> (SSG) and <a href="https://nextjs.org/docs/basic-features/pages#server-side-rendering">server-side rendering</a> (SSR) are supported on a per-page basis</li><li>Automatic code splitting for faster page loads</li><li><a href="https://nextjs.org/docs/routing/introduction#linking-between-pages">Client-side routing</a> with optimized prefetching</li><li><a href="https://nextjs.org/docs/basic-features/built-in-css-support">Built-in CSS</a> and <a href="https://nextjs.org/docs/basic-features/built-in-css-support#sass-support">Sass support</a>, and support for any <a href="https://nextjs.org/docs/basic-features/built-in-css-support#css-in-js">CSS-in-JS</a> library</li><li>Development environment with <a href="https://nextjs.org/docs/basic-features/fast-refresh">Fast Refresh</a> support</li><li><a href="https://nextjs.org/docs/api-routes/introduction">API routes</a> to build API endpoints with Serverless Functions</li><li>Fully extendable</li></ul><blockquote>Amazing! Lets recap what we learnt till now,</blockquote><blockquote>Next.Js is a react framework that allows us to achieve SEO using Server side rendering &amp; static generation and helps to create a production ready optimised build.</blockquote><blockquote>I believe we can say that <strong>Next.Js = React.Js + Some new features</strong></blockquote><h3>How is Next.Js different from React.Js?</h3><p>Next JS is a framework that holds React on its base, while React JS is an open-source JavaScript library, developed and maintained by Facebook. Next JS is used to create web applications and performs server-side rendering, whereas React JS focuses on rendering towards the DOM.</p><p>Lets have a look on below table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CpZ1_PveRF5Fewg1" /></figure><h3>Is Next JS Better Than React?</h3><p>Well, “Is Next JS Better Than React?” seems to be an inappropriate question as per my view. However, the right choice of technology or library depends on your project requirements and business goals.</p><p>React and Next.js are quickly becoming the most crucial components of the digital experience as a whole. They offer seamless and faster project experience at a given development cost.</p><p>I hope now you are aware of Next.Js, why we use it, how it is different from react.js.</p><blockquote><a href="https://medium.com/@karanjoura/next-js-code-setup-b3b6fdd12eb5"><strong>Next we will have a look on next.js project code setup.</strong></a></blockquote><p><strong><em>-Karan Joura</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5ab10e19714" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next.Js Folder Structure]]></title>
            <link>https://medium.com/@karanjoura/next-js-folder-structure-a48cd43df0cd?source=rss-37010b62f7f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a48cd43df0cd</guid>
            <category><![CDATA[nextjs-tutorial]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nextjs-with-seo]]></category>
            <category><![CDATA[nextjs-vs-react]]></category>
            <category><![CDATA[nextjs-with-sitemap]]></category>
            <dc:creator><![CDATA[Karan Joura]]></dc:creator>
            <pubDate>Sun, 21 Aug 2022 05:35:56 GMT</pubDate>
            <atom:updated>2022-08-22T05:41:36.523Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Dear Friends!</p><p>In my last story, I explained steps to do code setup of next.js project. Now, its important for us to know about the folder structure of next.js project.</p><p>The structure of next.js is bit different from react.js. Now you might be curious about difference between next.js and react.js.</p><p>Well! I will explain you each and every bit of it in my next story.</p><p>In this story my main focus will be to make you aware about folder structure of Next.Js project.</p><blockquote>So, Lets have a deep dive into the folder structure of next.js project.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*xB7ya_OXRMh-_I1N.png" /></figure><blockquote>In above snapshot, you can see the folder structure. Now, I will explain you about each part of this structure.</blockquote><blockquote><strong>Folder Structure :</strong></blockquote><ul><li><strong>app-name</strong> : This represents the project name</li><li><strong>components</strong> : It is same as components of react.js. To understand this, lets assume, there is a home page. In home page, there are multiple sections like header, side nav, footer. So, header, side nav &amp; footer are components and will be treat them as a independent item so that where ever we embed it, it works, a sort of code re-usability.</li><li><strong>pages :</strong> This is something new that we have never seen in angular &amp; react.js. Any JavaScript file that we create in pages will be a direct link. Confused? No issues, for this moment, simply assume it as a direct link. We will also have a detailed discussion on this in upcoming story. I will attach its link soon.</li><li><strong>static : </strong>Any static file like image, video, document,etc. are placed in this folder.</li><li><strong>next.config.js: </strong>It is a regular Node.js module, not a JSON file. It gets used by the Next.js server and build phases, and it&#39;s not included in the browser build.</li><li><strong>package.json: </strong>The package. json file is <strong>the heart of any Node project</strong>. It records important metadata about a project which is required before publishing to NPM, and also defines functional attributes of a project that npm uses to install dependencies, run scripts, and identify the entry point to our package.</li></ul><p>I know, you might have confusion. But believe me when I will show you live examples, you will be expert.</p><p>So don’t loose hope. Believe in yourself !</p><blockquote><strong>Next we will learn about a very important topic of next.js that is Dynamic routing.</strong></blockquote><p><strong><em>-Karan Joura</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a48cd43df0cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next.Js Code Setup]]></title>
            <link>https://medium.com/@karanjoura/next-js-code-setup-b3b6fdd12eb5?source=rss-37010b62f7f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3b6fdd12eb5</guid>
            <category><![CDATA[nextjs-tutorial]]></category>
            <category><![CDATA[nextjs-with-seo]]></category>
            <category><![CDATA[nextjs-with-sitemap]]></category>
            <category><![CDATA[nextjs-vs-react]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Karan Joura]]></dc:creator>
            <pubDate>Sun, 21 Aug 2022 04:53:41 GMT</pubDate>
            <atom:updated>2022-08-21T05:37:11.195Z</atom:updated>
            <content:encoded><![CDATA[<p>My Dear Friends,</p><p>In my previous story, I set some milestones to achieve Next.Js journey. In this story, I, <strong>Karan</strong>, your guide will help you to do code setup for Next.Js.</p><h3>How to do Next.js code setup?</h3><p>We will create our new Next.js app using create-next-app, which sets up everything automatically for us. To create a next.js project, run:</p><pre><strong>npx create-next-app@latest<br></strong># or<br><strong>yarn create next-app<br></strong># or<br><strong>pnpm create next-app</strong></pre><h3>How to run Next.js project</h3><p>After the installation is complete:</p><ul><li>Run npm run dev or yarn dev or pnpm dev to start the development server on <a href="http://localhost:3000/">http://localhost:3000</a></li><li>Visit http://localhost:3000 to view your application</li></ul><p>After you start the development server, the first page you view in browser will be like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YT05NUB3NzJjtOlb.png" /></figure><ul><li>Edit pages/index.js and see the updated result in your browser</li></ul><blockquote><a href="https://medium.com/@karanjoura/next-js-folder-structure-a48cd43df0cd">Next we will learn about <strong><em>folder structure</em></strong> of Next.Js project.</a></blockquote><p><strong><em>- Karan Joura</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3b6fdd12eb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey to Next.Js]]></title>
            <link>https://medium.com/@karanjoura/journey-to-next-js-d61351fac737?source=rss-37010b62f7f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d61351fac737</guid>
            <category><![CDATA[nextjs-tutorial]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nextjs-with-seo]]></category>
            <category><![CDATA[nextjs-with-sitemap]]></category>
            <category><![CDATA[nextjs-vs-react]]></category>
            <dc:creator><![CDATA[Karan Joura]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 07:05:06 GMT</pubDate>
            <atom:updated>2022-08-22T12:10:48.747Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello my dear friends!</p><p>I, <strong>Karan</strong>, will be your guide to complete the journey to <strong>Next.Js</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Crz2GXzJLs7jr5Pz.png" /></figure><p>But you need to promise me that you will stay tuned with this series and revise, revise and revise.</p><p>Before starting the journey to Next.Js, you must be thinking why Next.js? Was React.js not sufficient? I will resolve each and every query with practical examples.</p><p>But again, one thing I expect from you is dedication and revision.</p><blockquote><strong>I have also created a YouTube channel that is totally dedicated to Next.Js. You can also have a look on it. I only expect one thing in return that is a Like and a Subscription as a token of appreciation.</strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzS7ooyYV9Ho%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzS7ooyYV9Ho&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzS7ooyYV9Ho%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c7a314184e9992001e56a113fe494e7/href">https://medium.com/media/8c7a314184e9992001e56a113fe494e7/href</a></iframe><p>Lets begin the journey !</p><p>Let me tell you the various topics that we will cover in this journey:</p><ol><li><strong>Next.Js code setup</strong></li><li><strong>Basic Features</strong></li></ol><ul><li>Pages</li><li>Data Fetching like SSR, ISR, CSR.</li><li>Built in CSS Support</li><li>Image Optimization</li><li>Static File Serving</li></ul><p>3. <strong>Routing</strong></p><ul><li>Introduction and types of Routing</li><li>Dynamic Routing</li><li>Shallow Routing</li><li>Imperatively</li></ul><p>4.<strong> API Routes</strong></p><ul><li>Dynamic API Routes</li><li>Request Helpers</li><li>Response Helpers</li></ul><p>5. <strong>Production deployment</strong></p><p>6. <strong>Advance topics</strong></p><p>I hope now you are clear about the topics that we will cover.</p><blockquote><a href="https://medium.com/@karanjoura/introduction-to-next-js-e5ab10e19714">Next we will discuss about Next.js, why we use it and how its different form react.js.</a></blockquote><p><strong><em>-Karan Joura</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d61351fac737" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>