<?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"><channel><title><![CDATA[Web Development]]></title><description><![CDATA[Web Development]]></description><link>https://sumanjeet-webdev.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 19 Oct 2026 09:28:11 GMT</lastBuildDate><atom:link href="https://sumanjeet-webdev.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[React JS File Structure]]></title><description><![CDATA[Package.json
It contains the dependencies and the scripts required for the project. It has a few scripts to run the application, to build the application, and to run tests.

Node modules folder
This is the folder in which all the dependencies are ins...]]></description><link>https://sumanjeet-webdev.hashnode.dev/react-js-file-structure</link><guid isPermaLink="true">https://sumanjeet-webdev.hashnode.dev/react-js-file-structure</guid><category><![CDATA[React]]></category><category><![CDATA[react js]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[SUMANJEET]]></dc:creator><pubDate>Tue, 17 Oct 2023 17:31:20 GMT</pubDate><content:encoded><![CDATA[<h2 id="heading-packagejson">Package.json</h2>
<p>It contains the dependencies and the scripts required for the project. It has a few scripts to run the application, to build the application, and to run tests.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692586091114/2766de85-a519-463d-b0ad-e8404205b9fd.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-node-modules-folder">Node modules folder</h2>
<p>This is the folder in which all the dependencies are installed. It is generated when we run the create react app command or when we run NPM install.</p>
<h2 id="heading-public-folder">Public folder</h2>
<p>The <code>public</code> folder contains static assets and files that are publicly accessible and are not processed by the build tools. If we put a file into the <code>public</code> folder, it will <strong>not</strong> be processed by webpack. Instead, it will be copied into the build folder untouched. To reference assets in the <code>public</code> folder, we need to use an environment variable called <code>PUBLIC_URL</code>. Inside <code>index.html</code>, we can use it like this: <code>&lt;link rel="icon" href="%PUBLIC_URL%/favicon.ico" /&gt;</code> . When we run <code>npm run build</code>, Create React App will substitute <code>%PUBLIC_URL%</code> with a correct absolute path so our project works even if we use client-side routing or host it at a non-root URL. There are some downsides of this like Missing files will not be called at compilation time, and will cause 404 errors for our users.</p>
<h3 id="heading-files-of-public-folder">Files of Public folder</h3>
<ol>
<li><p><strong>favicon.ico</strong>: The favicon is the small icon that appears in the browser tab next to the page title. we can replace this with our own favicon.</p>
</li>
<li><p><strong>manifest.json:</strong> It is a JSON (JavaScript Object Notation) file used to provide metadata and configuration information about a Progressive Web App (PWA)</p>
</li>
<li><p><strong>index.html</strong>: The only HTML file in our react application. we are building single-page applications and this is it. It is this HTML file that gets served. We generally do not change anything in the HTML file Sometimes we change in the head tag but definitely not in the body tag. We won't react to control the UI for this purpose, we have one div tag with id root at runtime the react application takes over this div tag and is ultimately responsible for the UI. <code>&lt;div id="root"&gt;&lt;/div&gt;</code>. We call this a “root” DOM node because everything inside it will be managed by React.</p>
</li>
</ol>
<h2 id="heading-src-folder">SRC Folder</h2>
<p>This folder contains the source code of our React application. This is where we will write, organize and manage the code that makes up our React component styles and other application logic</p>
<p>The <code>src</code> folder typically contains the following important files and subdirectories:</p>
<ol>
<li><p><strong>index.js:</strong> This is the entry point of your React application. It's the JavaScript file where our application's main React component is rendered into the DOM. This file plays a critical role in setting up your application's initial structure and initiating the rendering process. The primary purpose of the <code>index.js</code> file is to render our main React component into the DOM. This is done using the <code>ReactDOM.render()</code> method.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692591513584/c72a5d26-4f07-4305-bcc6-7e10e4f658a7.png" alt class="image--center mx-auto" /></p>
<p> Here app.js file is rendered at the root level and with the help of this code <code>document.getElementById('root')</code> the div tag having id root is selected and the effect of rendering is viewed in the index.html file. The code is dynamically placed in the index.html file and finally, it becomes the single page application and served.</p>
</li>
<li><p><strong>index.css:</strong> it is just a CSS file for index.js file.</p>
</li>
<li><p><strong>app.js:</strong> It <strong>is</strong> the main component that serves as the entry point for your user interface, It represents the way which we see in the browser. It's where you define the overall structure and layout of your application and often contains the navigation, routing, and arrangement of other components. It is where we first start Building our app. It is like a container that holds various subcomponents and handles the high-level organization of our UI.</p>
</li>
<li><p><strong>app.css:</strong> it is just a CSS file for app.js file.</p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[Recursion]]></title><description><![CDATA[Recursion is defined as a process which calls itself directly or indirectly and the corresponding function is called a recursive function. It is based on the principle of mathematical induction. In recursion we solve a bigger problem by solving the s...]]></description><link>https://sumanjeet-webdev.hashnode.dev/recursion</link><guid isPermaLink="true">https://sumanjeet-webdev.hashnode.dev/recursion</guid><category><![CDATA[Recursion]]></category><category><![CDATA[Java]]></category><category><![CDATA[DSA]]></category><dc:creator><![CDATA[SUMANJEET]]></dc:creator><pubDate>Mon, 21 Aug 2023 21:04:10 GMT</pubDate><content:encoded><![CDATA[<p><strong>Recursion</strong> is defined as a process which calls itself directly or indirectly and the corresponding function is called a recursive function. It is based on the principle of mathematical induction. In recursion we solve a bigger problem by solving the smaller sub problems A function calls itself to solve its sub problem.</p>
<p><img src="https://www.bing.com/images/blob?bcid=qOsk5VwFFvsF8RmSmh-sUViHNplh.....4Y" alt="Search in sidebar query" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692645282431/a68e4356-e7a6-4c75-b1fc-f4d7c0d32b0d.png" alt class="image--center mx-auto" /></p>
<h3 id="heading-questions">Questions</h3>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692645943874/d367c953-3884-4ac8-9d11-a0581c7917a0.png" alt class="image--center mx-auto" /></p>
<p>We assume that the function is working for f(n-1) {Just like in PMI, we have assumed that the function is working for Kth term} and now we have to just think what should we do after getting f(n-1) to get the final answer (Self work), As in PMI we have proof that the function is working for k=1, Here we have to similarly find a base case (halting condition) for n=1.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692647391192/e90420f3-c009-4cf2-8f27-c7b58eb9f2cc.png" alt class="image--center mx-auto" /></p>
<p>whenever a method is called a stack frame is built in the call stack, Whenever a function is called its line number is recorded And after completing the function the stack frame of the running function is removed and the execution of. the caller function continues.</p>
<h3 id="heading-problem-solving-approach">Problem solving approach</h3>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692651252736/7f63a849-fee2-4b2f-874a-69f346e85e39.png" alt class="image--center mx-auto" /></p>
<h3 id="heading-thank-you-for-reading">Thank You For Reading</h3>
<h3 id="heading-keep-coding">Keep Coding</h3>
]]></content:encoded></item><item><title><![CDATA[Basics of React JS]]></title><description><![CDATA[What is React?
React is an open-source library for building user interfaces.It is not a framework.
Now the question is what is the difference between a library and a framework?
A library is a collection of pre-written code or functions that developer...]]></description><link>https://sumanjeet-webdev.hashnode.dev/basics-of-react-js</link><guid isPermaLink="true">https://sumanjeet-webdev.hashnode.dev/basics-of-react-js</guid><category><![CDATA[React]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[SUMANJEET]]></dc:creator><pubDate>Mon, 21 Aug 2023 02:16:01 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1692581751142/c8d5b988-2202-420d-8749-a65a54e35fb9.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="heading-what-is-react">What is React?</h3>
<p>React is an open-source library for building user interfaces.It is not a framework.</p>
<h3 id="heading-now-the-question-is-what-is-the-difference-between-a-library-and-a-framework">Now the question is what is the difference between a library and a framework?</h3>
<p>A library is a collection of pre-written code or functions that developers can use to perform specific tasks. Libraries typically focus on solving specific problems or providing specific functionalities. They are designed to be reusable, so developers can incorporate them into their projects to save time and effort. whereas a framework is a more comprehensive software structure that provides a foundation for building applications. It defines the overall architecture, sets rules, and provides a structure within which developers build their applications.</p>
<h3 id="heading-features-of-react">Features of React</h3>
<p>There are many features of React but we will talk about a few in this blog.</p>
<ol>
<li><p>React Has a component-based architecture Which means that the website we built will be divided into many components these components are nothing but a block of code that encapsulates a portion of a user interface and its behavior, Components are the fundamental units of building user interfaces in React applications. They allow you to split the UI into independent, reusable pieces, making your code more modular, maintainable, and organized.</p>
</li>
<li><p>React code is reusable. As discussed earlier that everything is written into components And these components can be reused in other places.</p>
</li>
<li><p>React is declarative which means that we have to tell React what we want and React will build the actual Ul. React will handle efficiently updating and rendering of the components.</p>
</li>
<li><p>It seamlessly integrates react into any of our applications, a Portion of our page or a complete page or even an entire application itself.</p>
</li>
</ol>
<h3 id="heading-getting-started-with-react-js">Getting started with react JS</h3>
<p>To get started with react js Just open any IDE and in the terminal type, <code>npx create-react-app &lt;project-name&gt;</code>. It will create a new folder named &lt;project-name&gt;, In the terminal go inside this folder and type <code>npm start</code> It will start the basic react app. now you can access the react app from <strong>http://localhost:3000.</strong></p>
<p><img src="https://www.bing.com/images/blob?bcid=qIPANZ4FD.oF8RmSmh-sUViHNplh.....yQ" alt /></p>
<h3 id="heading-thats-it-for-today-keep-coding"><strong><em>.............That's it for today, keep coding..............</em></strong></h3>
]]></content:encoded></item></channel></rss>