<?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 Parasharversha on Medium]]></title>
        <description><![CDATA[Stories by Parasharversha on Medium]]></description>
        <link>https://medium.com/@parasharversha27?source=rss-f4c10957d497------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MU8rw81n7bPP1Gvk</url>
            <title>Stories by Parasharversha on Medium</title>
            <link>https://medium.com/@parasharversha27?source=rss-f4c10957d497------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 01:39:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parasharversha27/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[Understanding Web Storage]]></title>
            <link>https://medium.com/@parasharversha27/understanding-web-storage-eab7aaba5c06?source=rss-f4c10957d497------2</link>
            <guid isPermaLink="false">https://medium.com/p/eab7aaba5c06</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[localstorage]]></category>
            <category><![CDATA[sessionstorage]]></category>
            <category><![CDATA[cookies]]></category>
            <category><![CDATA[web-storage]]></category>
            <dc:creator><![CDATA[Parasharversha]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 15:40:38 GMT</pubDate>
            <atom:updated>2024-07-05T15:40:38.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*sU_PvcAWCYez_AEUsgBQNA.png" /></figure><p><strong>Understanding Web Storage: Session Storage, Local Storage, and Cookies</strong></p><p>Managing data on the client-side is crucial for creating efficient and user-friendly web applications. Here’s a simple guide to Session Storage, Local Storage, and Cookies, their uses, and benefits.</p><h4><strong>Session Storage</strong></h4><p>What It Is: <br>Session Storage stores data for the duration of a page session. Data is kept until the browser or tab is closed.</p><p>Advantages:<br>-Temporary Storage: Data is only available during the current session.<br>-Separate Storage: Each tab or window has its own storage, preventing data overlap between tabs.</p><h4><strong>Local Storage</strong></h4><p>What It Is:<br>Local Storage is similar to Session Storage but keeps data with no expiration time. Data remains even after the browser is closed and reopened.</p><p>Advantages:<br>- Persistent Storage: Data stays available across browser sessions.<br>- Large Capacity: Can store more data compared to cookies.</p><h4><strong>Cookies</strong></h4><p>What They Are:<br>Cookies are small pieces of data stored by the browser that persist across sessions and can be sent to the server with each HTTP request.</p><p>Advantages:<br>- Server Communication: Can be sent with HTTP requests, allowing server-side data handling.<br>- Expiration Control: Can set expiration dates to control how long data persists.</p><p><strong>When to Use What?</strong></p><p>-<strong> Session Storage: </strong>Use for temporary data needed only during the current browser session. Ideal for data that doesn’t need to persist after the tab or window is closed.<br> <br>- <strong>Local Storage: </strong>Use for data that needs to persist across sessions, such as user preferences and settings.</p><p>- <strong>Cookies:</strong> Use for data that needs to be sent to the server with each request or when more control over data expiration is needed, such as authentication tokens and tracking information.</p><p><strong>Conclusion</strong></p><p>Understanding Session Storage, Local Storage, and Cookies is key for effective client-side data management. Each has its strengths and ideal use cases, helping you build efficient and user-friendly applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eab7aaba5c06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fetch v/s Axios]]></title>
            <link>https://medium.com/@parasharversha27/fetch-v-s-axios-e8473e0c5a33?source=rss-f4c10957d497------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8473e0c5a33</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[fetch]]></category>
            <category><![CDATA[fetch-api]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[axios]]></category>
            <dc:creator><![CDATA[Parasharversha]]></dc:creator>
            <pubDate>Sat, 22 Jun 2024 12:47:02 GMT</pubDate>
            <atom:updated>2024-06-22T12:47:02.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*quTpcb5i1NuOx235KQynOg.jpeg" /></figure><h3><strong>Fetch</strong></h3><p>Fetch is a built-in JavaScript API for making HTTP requests. It’s a modern replacement for XMLHttpRequest and is natively supported in modern browsers.</p><p>Advantages of Fetch:</p><ul><li>Built-In: No extra libraries needed; available in modern browsers.</li><li>Simple Syntax: Offers a clean and straightforward syntax.</li><li>Promise-Based: Utilizes promises for easier asynchronous handling.</li></ul><p>Disadvantages of Fetch:</p><ul><li>Error Handling: Manual handling of HTTP and network errors is required.</li><li>Limited Features: Lacks built-in support for request cancellation or timeout handling.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*KamW5x8nA7VTsT2M56euXg.png" /><figcaption>HOW TO USE FETCH</figcaption></figure><h3><strong>Axios</strong></h3><p>Axios is a popular third-party library for making HTTP requests in JavaScript. It provides a richer feature set and is widely used in the JavaScript community.</p><p>Advantages of Axios:</p><ul><li>Simplified Syntax: Easier to read and write compared to Fetch.</li><li>Automatic JSON Parsing: Parses JSON responses automatically.</li><li>Extended Features: Supports request cancellation, timeout handling, and interceptors.</li></ul><p>Disadvantages of Axios:</p><ul><li>Additional Dependency: Requires installing an external library.</li><li>Bundle Size: Increases the overall size of your application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*zKufOMVUyVJM9ngVgGm4Tw.png" /><figcaption>HOW TO USE AXIOS</figcaption></figure><p><strong>When to Use Fetch:</strong></p><ul><li>opt for Fetch if you need a lightweight solution without additional dependencies and are working in an environment with modern browsers that support it. Ideal for simple requests and scenarios that don’t require advanced features.</li></ul><p><strong>When to Use Axios:</strong></p><ul><li>Choose Axios if you need a more powerful tool with built-in features like request cancellation, timeout handling, and interceptors. Perfect for complex applications where these features save development time and reduce boilerplate code.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8473e0c5a33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Redux and Redux Toolkit]]></title>
            <link>https://medium.com/@parasharversha27/redux-and-redux-toolkit-5487a282f86d?source=rss-f4c10957d497------2</link>
            <guid isPermaLink="false">https://medium.com/p/5487a282f86d</guid>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[redux-toolkit]]></category>
            <dc:creator><![CDATA[Parasharversha]]></dc:creator>
            <pubDate>Tue, 18 Jun 2024 04:31:59 GMT</pubDate>
            <atom:updated>2024-06-18T04:31:59.959Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*om4w1jtedgkb8yMm3acgHQ.jpeg" /></figure><h3>Redux</h3><p>Redux is a library for managing the state of your application in a predictable way. Think of it like a central place where all the data that your app needs is stored. Here are the key points:</p><p>-Predictable State Changes: Whenever something changes in your app, it happens in a consistent and predictable way because all the changes go through a single point.<br>- Good for Complex Apps: If your app has a lot of different data and interactions, Redux helps you manage it all in one place.<br>- Handles Async Actions: With tools like Redux Thunk, Redux can deal with things that take time to happen, like fetching data from a server.</p><p><strong>Drawbacks:<br></strong>- Boilerplate Code: Setting up Redux can be more complex and involve writing more code compared to simpler solutions.<br>- Learning Curve: It can be challenging to learn at first due to its concepts and setup requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*SCRIeLHyuIbPbDLBhwq-6A.jpeg" /></figure><h3>Redux Toolkit</h3><p>Redux Toolkit is a set of tools that make using Redux easier and faster. Here’s what it is:</p><ul><li>Simplified Setup: It reduces the amount of setup and extra code you need to write, making it quicker to start using Redux.<br>- Immutable State Updates: It helps you write reducers (functions that handle state changes) in a simpler and more concise way, ensuring state changes are done correctly.<br>- Built-in Async Handling: It comes with Redux Thunk built-in, making it easy to handle things like data fetching.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*rG1mE8Eug7M4jHWufH0aLA.png" /><figcaption>Using Redux Thunk</figcaption></figure><p><strong>Drawbacks</strong>:<br>- Extra Dependency: While it adds an additional dependency to your project, it’s an official and widely supported tool.</p><p>Additional Features of Redux Toolkit <br>- CreateSlice: Simplifies the creation of reducers and actions.<br>- CreateAsyncThunk: Makes it easier to handle asynchronous actions.<br>- Redux DevTools Integration: Works out of the box with Redux DevTools for debugging.<br>- Built-in Tools: Includes useful Tools by default, like Redux Thunk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*ocivNk5E2_ffIm_OQ9QH5g.png" /><figcaption>Creating Slice</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5487a282f86d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ContextAPI v/s Redux Store]]></title>
            <link>https://medium.com/@parasharversha27/contextapi-v-s-redux-store-b2c95b223fe1?source=rss-f4c10957d497------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2c95b223fe1</guid>
            <dc:creator><![CDATA[Parasharversha]]></dc:creator>
            <pubDate>Sun, 16 Jun 2024 16:07:17 GMT</pubDate>
            <atom:updated>2024-06-16T16:07:17.521Z</atom:updated>
            <content:encoded><![CDATA[<p>When developing React applications, managing state efficiently is crucial. Two popular options for state management are Context API and Redux Store. Here’s a comparison to help you choose the right one for your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*t0smBM22txWFT6qysDU9FA.jpeg" /><figcaption>Redux v/s ContextAPI</figcaption></figure><h3>Context API</h3><p>Context API is a built-in React feature for sharing data across components without props drilling, best for simple state needs.</p><p><strong>Pros:</strong> Easy setup, no extra libraries, great for small to medium apps.</p><p><strong>Cons:</strong> Can slow down performance with extensive use, lacks advanced features like middleware.</p><h3><strong>Redux Store</strong></h3><p>Redux Store is a popular tool for managing state in React apps, ideal for complex state management.</p><p><strong>Pros: </strong>Predictable state changes, great for large apps, supports advanced async handling with middleware like Redux Thunk.</p><p><strong>Cons: </strong>Requires more setup and code, harder to learn compared to Context API</p><p>Choose Context API for small to medium apps with simple state needs due to its simplicity and minimal setup. opt for Redux for large apps with complex state management and advanced features like Redux Thunk. Context API is easy for basics; Redux excels in scalability and predictability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2c95b223fe1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ReactJs v/s NextJs]]></title>
            <link>https://medium.com/@parasharversha27/reactjs-v-s-nextjs-dca29aaa77d4?source=rss-f4c10957d497------2</link>
            <guid isPermaLink="false">https://medium.com/p/dca29aaa77d4</guid>
            <category><![CDATA[reactjs-vs-nextjs]]></category>
            <dc:creator><![CDATA[Parasharversha]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 04:37:32 GMT</pubDate>
            <atom:updated>2024-06-14T04:47:01.835Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve worked with React.js and Next.js, you’re already familiar with their capabilities. Here’s a concise comparison to highlight their differences and strengths:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*w5nokQjZCyjnF15SDPBPZg.jpeg" /><figcaption>NextJs V/s ReactJs</figcaption></figure><p><strong>REACTJS</strong></p><p>· <strong>Developed by Facebook</strong></p><p>· <strong>React.js</strong> is used to build user interfaces, especially single-page applications (SPAs). It features a <strong>component-based architecture</strong>, allowing you to create encapsulated components that manage their state, and a <strong>virtual DOM</strong> for efficient updates and rendering.</p><p>· With <strong>unidirectional data flow</strong>, it simplifies debugging and understanding applications.</p><p>· Use React.js when you need a highly interactive UI, are building a single-page application, or want complete control over routing, state management, and other architectural decisions.</p><p><strong>NEXTJS</strong></p><p>· <strong>Developed by Vercel</strong></p><p>· <strong>Next.js</strong> enhances React apps with features for server-side rendering (SSR) and static site generation (SSG).</p><p>· It offers <strong>file-based routing</strong>, creating routes based on the file structure in the page’s directory, and supports <strong>server-side rendering</strong> to fetch data on the server before rendering a page. With <strong>static site generation</strong>, it generates static HTML at build time, improving performance and SEO.</p><p>· Next.js also includes <strong>API routes</strong> to build API endpoints within the same project and <strong>built-in CSS and Sass support</strong> for handling styles directly. Use Next.js when you need SSR for SEO or performance, want to generate static sites, prefer convention over configuration, or need to build APIs within the same project.</p><p><strong>I prefer Next.js</strong> for its built-in server-side rendering and static site generation, which boost performance and SEO. Its file-based routing and integrated API routes simplify development. While React.js offers flexibility, Next.js’s features make it ideal for modern web applications.</p><p>Which one will you prefer? Share in comment section!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dca29aaa77d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>