<?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>DEV Community: Neel-Vekariya</title>
    <description>The latest articles on DEV Community by Neel-Vekariya (@neel-vekariya).</description>
    <link>https://dev.to/neel-vekariya</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3968256%2Ff900b976-6eab-4295-bca9-6c8b6fd937e2.jpeg</url>
      <title>DEV Community: Neel-Vekariya</title>
      <link>https://dev.to/neel-vekariya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neel-vekariya"/>
    <language>en</language>
    <item>
      <title>I have a delulu.</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Thu, 26 Nov 2026 06:50:26 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/i-have-a-delulu-lbc</link>
      <guid>https://dev.to/neel-vekariya/i-have-a-delulu-lbc</guid>
      <description>&lt;p&gt;I have a delulu.&lt;/p&gt;

&lt;p&gt;Because when I learn a topic, I have a delulu that I've learned it perfectly.&lt;/p&gt;

&lt;p&gt;Then the real test comes or a question comes up, and I go blank.&lt;/p&gt;

&lt;p&gt;I need to see my notes. And I dart my eyes across my notes, then I memorize all the things.&lt;/p&gt;

&lt;p&gt;I think I have a delulu. I learn everything perfectly, but it's always wrong. I always need my notes.&lt;/p&gt;

&lt;p&gt;But this is not only for me. MongoDB does the same thing. It also maintains notes.&lt;/p&gt;

&lt;p&gt;Very strange, but it maintains notes called a Journal.&lt;/p&gt;

&lt;p&gt;Is MongoDB also have a delulu, because it maintains Journals.&lt;/p&gt;

&lt;p&gt;ummmm 🤔🤔 not exactly delulu, but it needs to protect itself against failures.&lt;/p&gt;

&lt;p&gt;Assume MongoDB is writing data to disk, and suddenly the power goes out or some crash occurs. Writing data to disk takes time. The crash can leave incomplete operations in the database.&lt;/p&gt;

&lt;p&gt;Now it becomes a situation like I learned all the things, but I don't yet remember where to start. And then I open my notes and again memorize all the content or context.&lt;/p&gt;

&lt;p&gt;MongoDB uses the WiredTiger storage engine, which maintains a journal.&lt;/p&gt;

&lt;p&gt;It uses the journal to recover changes that were committed but not yet successfully written to the database's data files.&lt;/p&gt;

&lt;p&gt;firstly it successfully writes a change to its journal.&lt;/p&gt;

&lt;p&gt;Before that change is fully written to the database files, the server crashes.&lt;/p&gt;

&lt;p&gt;This helps maintain database consistency and durability.&lt;/p&gt;

&lt;p&gt;But one important thing is that it does not protect against accidental deletion or disk failure, and one thing is that it is not a backup of the database.&lt;/p&gt;

&lt;p&gt;so what is your thought about the delusion. Can you have.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>mongodb</category>
      <category>softwareengineering</category>
      <category>node</category>
    </item>
    <item>
      <title>Abstraction of MongoDB</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:02:23 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/abstraction-of-mongodb-1g7g</link>
      <guid>https://dev.to/neel-vekariya/abstraction-of-mongodb-1g7g</guid>
      <description>&lt;p&gt;I have a question. Why is everyone in tech obsessed with abstraction?&lt;/p&gt;

&lt;p&gt;Almost everything is an abstraction over some complex or repetitive task.&lt;/p&gt;

&lt;p&gt;Some abstractions remove repetitive tasks, while others hide complexity and provide simpler ways to do that work.&lt;/p&gt;

&lt;p&gt;But this abstraction comes with some cost. We'll discuss that cost some other day.&lt;/p&gt;

&lt;p&gt;MongoDB is also an abstraction that provides a simpler way to store and work with data.&lt;/p&gt;

&lt;p&gt;And this abstraction starts with its core concept: documents.&lt;/p&gt;

&lt;p&gt;What does that mean? Don't be confused.&lt;/p&gt;

&lt;p&gt;It means you can store user data in one document, product data in another document, and if you need to store other details, like orders, you can store them in separate documents.&lt;/p&gt;

&lt;p&gt;You don't need to worry about how MongoDB stores this data at the physical or low level. MongoDB manages how the data is stored internally. This gives you the document abstraction.&lt;/p&gt;

&lt;p&gt;Now, the second main abstraction is tables and relationships.&lt;/p&gt;

&lt;p&gt;Think in terms of a relational database. Assume you need to store details of a user, like their address. What would you do?&lt;/p&gt;

&lt;p&gt;Ummmmmmm 🤔🤔&lt;/p&gt;

&lt;p&gt;We first create a user table and then connect it with an address table.&lt;/p&gt;

&lt;p&gt;Here, we need to manually define relationships between these tables.&lt;/p&gt;

&lt;p&gt;But MongoDB allows you to store this information in one document.&lt;/p&gt;

&lt;p&gt;One disclaimer: neither model is perfect. It depends on the use case.&lt;/p&gt;

&lt;p&gt;This gives you an abstraction over managing relationships between data.&lt;/p&gt;

&lt;p&gt;Now, the next abstraction MongoDB provides is operations.&lt;/p&gt;

&lt;p&gt;We can query documents and collections to retrieve useful information.&lt;/p&gt;

&lt;p&gt;Using commands, you tell MongoDB what you want to find or change. Now, MongoDB determines how to execute that operation using its query engine, indexes, and storage mechanisms.&lt;/p&gt;

&lt;p&gt;And that's how MongoDB makes working with data simpler through abstraction.&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>node</category>
      <category>softwareengineering</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What happened with databases ??</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Sun, 22 Nov 2026 04:52:20 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/what-happened-with-databases--254a</link>
      <guid>https://dev.to/neel-vekariya/what-happened-with-databases--254a</guid>
      <description>&lt;p&gt;Someone told me that if you want to understand any technology, then you definitely need to understand its past.&lt;/p&gt;

&lt;p&gt;Every technology starts from near zero. Over time, it improves and gets better and better because developers and creators encounter problems, discover limitations, and try different approaches to solve them.&lt;/p&gt;

&lt;p&gt;This gives us knowledge of what problems existed, how they were solved, and how the technology improved.&lt;/p&gt;

&lt;p&gt;And the same improvements happened in databases.&lt;/p&gt;

&lt;p&gt;Because...&lt;/p&gt;

&lt;p&gt;It all started with storing data in files.&lt;/p&gt;

&lt;p&gt;In the early days of computers, text files and JSON files were used to store data. It was simple, but it had limitations like searching, updating, relationships, and recovery.&lt;/p&gt;

&lt;p&gt;Then we moved to hierarchical and network databases.&lt;/p&gt;

&lt;p&gt;In DSA, you practice some questions related to trees, where you have parent-child relationships. Hierarchical databases have the same concept as trees. They have a parent, a child, and relationships between them.&lt;/p&gt;

&lt;p&gt;And network databases use the same concepts as graphs and linked lists, where data is connected to each other. This allowed us to build more connections and complex relationships.&lt;/p&gt;

&lt;p&gt;They also had limitations, so we improved them and moved on to databases called relational databases.&lt;/p&gt;

&lt;p&gt;They had the ability to manage complex data, transactions for reliable queries, indexes, and a structured language for querying.&lt;/p&gt;

&lt;p&gt;But as the internet and the web grew, applications needed to manage different kinds of data.&lt;/p&gt;

&lt;p&gt;Especially social media applications, quick-commerce applications, and applications where data constantly changes.&lt;/p&gt;

&lt;p&gt;To manage this type of application at a large scale, it requires many optional fields and complex queries to reliably store and retrieve data from relational databases.&lt;/p&gt;

&lt;p&gt;And here, MongoDB became more useful for managing this type of data. Because it has a document and collection mechanism for storing data reliably. Documents don't force you to store data with similar fields; they allow you to add different fields in the same group of collections.&lt;/p&gt;

&lt;p&gt;So, that is the evolution of databases. &lt;strong&gt;And what are your thoughts on this evolution?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>softwareengineering</category>
      <category>webdev</category>
      <category>node</category>
      <category>database</category>
    </item>
    <item>
      <title>Why? Why do you need MongoDB?</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Fri, 20 Nov 2026 05:58:17 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/why-why-do-you-need-mongodb-2f3h</link>
      <guid>https://dev.to/neel-vekariya/why-why-do-you-need-mongodb-2f3h</guid>
      <description>&lt;p&gt;In applications, you can store data using a relational database.&lt;/p&gt;

&lt;p&gt;The relational database already gives you the power to create complex relationships between data. Instead, you use a non-relational database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why? Why do you need MongoDB?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And if your argument is that MongoDB is a simple-to-use NoSQL database, so I prefer MongoDB, then actually, you don't understand the actual use case of MongoDB.&lt;/p&gt;

&lt;p&gt;So, the use case starts when you build a social media application, a quick-commerce application, or an application where &lt;strong&gt;the attributes of a field are not fixed.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this type of application, each product has different attributes, and for that, in a relational database, you need to create many optional fields so the table supports different types of product data.&lt;/p&gt;

&lt;p&gt;This approach works, but after a certain level, it requires a heavily normalized design that supports all the products at a higher scale. &lt;strong&gt;This becomes more complex for querying and planning the database.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Whereas &lt;strong&gt;MongoDB has superpowers.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because it uses &lt;strong&gt;documents to store data instead of records.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;But what is a document?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Unlike relational databases, where all the details of a specific person or product are stored in a record, MongoDB stores information in documents in the form of a field-value structure. &lt;strong&gt;This gives you the ability to add any number of fields or unique fields to a document.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And the group of these documents is called a collection. A collection has different documents with different fields.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The problem that we face in relational databases is solved by this collection and document approach provided by MongoDB.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, this is one ability of MongoDB, and it has many other abilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tell me in the comment section.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>softwareengineering</category>
      <category>node</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What is MongoDB really ?</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Wed, 18 Nov 2026 11:35:40 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/what-is-mongodb-really--225g</link>
      <guid>https://dev.to/neel-vekariya/what-is-mongodb-really--225g</guid>
      <description>&lt;p&gt;Someone asks you, “What is MongoDB?” and you say, “MongoDB is a NoSQL database.”&lt;/p&gt;

&lt;p&gt;Now, the person thinks you don’t really understand MongoDB.&lt;/p&gt;

&lt;p&gt;Why?&lt;/p&gt;

&lt;p&gt;Because your answer is too broad to explain what MongoDB really is.&lt;/p&gt;

&lt;p&gt;The question you need to interpret is: &lt;strong&gt;“What is MongoDB, really?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In general terms, you know MongoDB is a database. But what is it, really?&lt;/p&gt;

&lt;p&gt;More technically, MongoDB is a document-oriented, general-purpose NoSQL data management system that stores data as &lt;strong&gt;BSON&lt;/strong&gt; documents organized into collections.&lt;/p&gt;

&lt;p&gt;Too technical? 🤦‍♂️🤦‍♂️ Right?&lt;/p&gt;

&lt;p&gt;Let’s discuss all these terms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Firstly, what does NoSQL mean?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You probably work with SQL databases. You write SQL queries, work with tables, and store data in rows and columns.&lt;/p&gt;

&lt;p&gt;You might also be familiar with writing queries like &lt;code&gt;SELECT&lt;/code&gt;, &lt;code&gt;INSERT&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, and &lt;code&gt;DELETE&lt;/code&gt; to work with your data.&lt;/p&gt;

&lt;p&gt;This category is called SQL databases. But there is another category called NoSQL databases, which do not rely on the traditional relational database model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Document-oriented&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you work with web requests, you are probably familiar with JSON data, which contains fields and values. Similarly, MongoDB represents data as JSON-like documents containing fields and values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BSON&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;BSON is similar to JSON, but it represents data in binary form and also supports additional data types.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Collection&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A collection is a logical grouping of documents. It is similar to a table in a relational database.&lt;/p&gt;

&lt;p&gt;Now, you can explain MongoDB beyond just calling it a database.&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>softwareengineering</category>
      <category>webdev</category>
      <category>database</category>
    </item>
    <item>
      <title>Do you ever wonder how React decides which task to work on first?</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Mon, 16 Nov 2026 13:28:51 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/do-you-ever-wonder-how-react-decides-which-task-to-work-on-first-1l7b</link>
      <guid>https://dev.to/neel-vekariya/do-you-ever-wonder-how-react-decides-which-task-to-work-on-first-1l7b</guid>
      <description>&lt;p&gt;&lt;br&gt;
    Do you ever wonder how React decides which task to work on first?&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    How does it decide the priority of each task?&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    Like, two things happen in the application.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    First, a user types into a search box and expects immediate results.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    Second, a large list of search results needs to be rendered.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    If React processes the large list first, the main thread may be blocked&lt;br&gt;
    during that time, making the application feel slow while the user types&lt;br&gt;
    in the search box.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    This degrades the user experience.&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    How does React decide which task to perform first?&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    And what happens when one task is being performed and a higher-priority&lt;br&gt;
    task comes in?&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    For this, React has a scheduler.&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    React's scheduling architecture helps decide when rendering work is&lt;br&gt;
    performed and which updates should receive priority.&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    Imagine two tasks are pending:&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    First, a low-priority task, and second, a high-priority task.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    Now, which task is performed first?&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    The second one, right?&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    Because it has a higher priority.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    So, the scheduler picks the second task for execution.&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    Now, the question is:&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    What happens when one task is being executed and another,&lt;br&gt;
    higher-priority task comes in?&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    React has a concurrent rendering feature that helps interrupt or&lt;br&gt;
    restart eligible rendering work.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    This means React can pause the current work and start working on the&lt;br&gt;
    higher-priority task.&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    After executing it, React can continue or restart the previous&lt;br&gt;
    rendering work.&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    Now, I have one question for you:&lt;br&gt;
    &lt;br&gt;&lt;br&gt;
    In which case does React start the rendering process from the beginning&lt;br&gt;
    instead of continuing?&lt;br&gt;
  &lt;/p&gt;


&lt;p&gt;&lt;br&gt;
    React's scheduler doesn't make a React application faster, but it&lt;br&gt;
    decides which task to perform first so that the user experience&lt;br&gt;
    improves by keeping the application responsive while React manages&lt;br&gt;
    rendering work.&lt;br&gt;
  &lt;/p&gt;

</description>
      <category>node</category>
      <category>webdev</category>
      <category>softwareengineering</category>
      <category>react</category>
    </item>
    <item>
      <title>Difference Between Render Phase and Commit Phase.</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Fri, 13 Nov 2026 07:52:32 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/difference-between-render-phase-and-commit-phase-l9d</link>
      <guid>https://dev.to/neel-vekariya/difference-between-render-phase-and-commit-phase-l9d</guid>
      <description>&lt;p&gt;&lt;br&gt;
    In React, you’ve heard these two different terminologies, Render Phase&lt;br&gt;
    and Commit Phase, which sound similar, right? But they are different,&lt;br&gt;
    so can you tell what the difference between them is?&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    There is a big difference in their work too. Knowing these terminologies&lt;br&gt;
    helps you understand React's internals.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;Firstly, let's pick the Render Phase.&lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    React uses reconciliation and the Fiber tree to determine the updates.&lt;br&gt;
    This includes calling components, processing updates, and reconciling&lt;br&gt;
    the resulting elements.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    Now, when a state update happens because of user interaction, React&lt;br&gt;
    performs rendering work to figure out what the UI should look like.&lt;br&gt;
    It uses the Fiber tree to track this work. Depending on the situation,&lt;br&gt;
    React may repeat or interrupt the render work.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    Now, reconciliation helps React determine what changes are needed in&lt;br&gt;
    the UI by comparing the new elements with the existing Fiber tree.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    This process of figuring out what the UI should look like and what&lt;br&gt;
    changes are needed is called the Render Phase.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    To apply these changes to the Host DOM, the process passes to the&lt;br&gt;
    Commit Phase.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    It works by inserting, updating, or deleting DOM nodes in the Host DOM&lt;br&gt;
    and applying the necessary DOM properties.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    After the Render Phase determines the necessary changes, the Commit&lt;br&gt;
    Phase applies them to the Host DOM, and we see the UI update.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    In simple terms, determining the changes is the work of the Render&lt;br&gt;
    Phase, and applying those changes is the work of the Commit Phase.&lt;br&gt;
  &lt;/p&gt;



&lt;p&gt;&lt;br&gt;
    Now, one question comes from this process: Are React's reconciliation&lt;br&gt;
    and the browser's layout or compositing separate processes?&lt;br&gt;
  &lt;/p&gt;


</description>
      <category>webdev</category>
      <category>node</category>
      <category>softwareengineering</category>
      <category>react</category>
    </item>
    <item>
      <title>Why Does React Use the Fiber Tree, and What Is It Actually?</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:55:24 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/why-does-react-use-the-fiber-tree-and-what-is-it-actually-2ddn</link>
      <guid>https://dev.to/neel-vekariya/why-does-react-use-the-fiber-tree-and-what-is-it-actually-2ddn</guid>
      <description>&lt;p&gt;If you have decent experience with React, then you might know it uses the Fiber tree. But do you know why it uses the Fiber tree and what it actually is?&lt;/p&gt;

&lt;p&gt;In the previous post, we discussed how JSX is converted into React elements and how these are used to create DOM elements.&lt;/p&gt;

&lt;p&gt;Now React needs more than a collection of React elements to manage a running application.&lt;/p&gt;

&lt;p&gt;It needs to keep track of component identity, previous work, state, pending updates, effects, and work that needs to be performed.&lt;/p&gt;

&lt;p&gt;For that, React uses an internal data structure called a Fiber node. Conceptually, the UI might have a component tree.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;        App
         |
       /   \
   Header  Counter
      |       |
    Logo    Counter&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Conceptually, it looks like this.&lt;/p&gt;

&lt;p&gt;It contains information like:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The type of the component or host element.&lt;/li&gt;
  &lt;li&gt;Relationships to its parent, children, and siblings.&lt;/li&gt;
  &lt;li&gt;Its current and pending work.&lt;/li&gt;
  &lt;li&gt;References to state and update queues.&lt;/li&gt;
  &lt;li&gt;Effect flags indicating work required during the commit phase.&lt;/li&gt;
  &lt;li&gt;A link to the Fiber representation of another version of that node.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, it is React’s internal representation for managing a node’s work and lifecycle.&lt;/p&gt;

&lt;h3&gt;Now, let's come to the main question: why does React need Fiber?&lt;/h3&gt;

&lt;p&gt;If you know that React uses the reconciliation method to detect updates, then you should also know that detecting those updates and applying those changes are two different tasks.&lt;/p&gt;

&lt;p&gt;To apply those changes, React needs to process a large component tree. The Fiber architecture supports that work.&lt;/p&gt;

&lt;p&gt;All the work, like applying changes, prioritizing updates, rendering nodes, and pausing, restarting, or abandoning unfinished render work, is supported by Fiber.&lt;/p&gt;

&lt;p&gt;That’s why React uses the Fiber tree.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>node</category>
      <category>softwareengineering</category>
      <category>react</category>
    </item>
    <item>
      <title>You Write the Code. React Renders the UI. But What Happens Between Your Code and the Magic?</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Fri, 06 Nov 2026 05:22:00 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/you-write-the-code-react-renders-the-ui-but-what-happens-between-your-code-and-the-magic-56dl</link>
      <guid>https://dev.to/neel-vekariya/you-write-the-code-react-renders-the-ui-but-what-happens-between-your-code-and-the-magic-56dl</guid>
      <description>&lt;p&gt;To understand the magic, you first need to understand what a React element is.&lt;/p&gt;

&lt;p&gt;So, a React element is, by definition, a lightweight description of a UI node.&lt;/p&gt;

&lt;p&gt;A React element looks like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{
  type: "h1",
  props: {
    children: "Hello, World!"
  }
}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It’s a description of the UI, where it describes which elements to render, what content they contain, and, if there are more props, more details about that UI.&lt;/p&gt;

&lt;p&gt;The JSX code is first converted into React elements.&lt;/p&gt;

&lt;p&gt;But a React element does not, by itself, represent an actual browser DOM node.&lt;/p&gt;

&lt;p&gt;Now the question comes to mind:&lt;/p&gt;

&lt;h3&gt;How does React create DOM elements, and why does it need to introduce React elements?&lt;/h3&gt;

&lt;p&gt;In a JSX component, you describe only the desired UI. But React needs a description of those elements.&lt;/p&gt;

&lt;p&gt;For that reason, it processes that UI using its rendering machinery and creates React elements.&lt;/p&gt;

&lt;p&gt;Now React creates the DOM elements from those React elements and inserts them into the document during the commit process. After the commit, you see the magic on the screen.&lt;/p&gt;

&lt;p&gt;To understand the commit process, we need to understand many concepts. One of them is the Fiber tree, which we will discuss in the next post.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>node</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>If You Think React Is Free to Use, You Are Wrong.</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Wed, 04 Nov 2026 05:47:09 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/if-you-think-react-is-free-to-use-you-are-wrong-4pia</link>
      <guid>https://dev.to/neel-vekariya/if-you-think-react-is-free-to-use-you-are-wrong-4pia</guid>
      <description>&lt;h2&gt;React Is Not Free. Let’s Clarify This.&lt;/h2&gt;

&lt;p&gt;
  When you use an abstraction over a complex task, it gives you convenience by moving complexity into a framework, which you learn through another mental model present in your mind.
&lt;/p&gt;

&lt;p&gt;
  This adds more concepts, like React mental model complexity, component/state complexity, and reconciliation/runtime complexity.
&lt;/p&gt;

&lt;p&gt;
  That’s why I say it: you move complexity into the mental model that is present in the mind.
&lt;/p&gt;





&lt;h3&gt;
  Another trade-off is control.
&lt;/h3&gt;

&lt;p&gt;
  You get maximum control when you work directly with DOM manipulation.
&lt;/p&gt;

&lt;p&gt;
  But in the case of React, control is given to React.
&lt;/p&gt;

&lt;p&gt;
  React manages all the operations, like insertion and deletion of DOM elements and updates to the DOM.
&lt;/p&gt;

&lt;p&gt;
  Now, you don’t have direct access to the DOM.
&lt;/p&gt;

&lt;p&gt;
  You exchange control for complexity.
&lt;/p&gt;





&lt;h3&gt;
  If you lose control, then you lose ownership.
&lt;/h3&gt;

&lt;p&gt;
  Now React becomes the owner of the rendering process.
&lt;/p&gt;

&lt;p&gt;
  It becomes a middleman between your application and the browser.
&lt;/p&gt;

&lt;p&gt;
  It creates the necessity to understand React’s rules.
&lt;/p&gt;

&lt;p&gt;
  That’s it.
&lt;/p&gt;

&lt;p&gt;
  Ummmm, really, don’t.
&lt;/p&gt;





&lt;h3&gt;
  Another big trade-off is runtime overhead and memory.
&lt;/h3&gt;

&lt;p&gt;
  Assume that React has some work pending to do.
&lt;/p&gt;

&lt;p&gt;
  Now, the question is: does React directly hand over this work to the browser?
&lt;/p&gt;

&lt;p&gt;
  Really, don’t.
&lt;/p&gt;

&lt;p&gt;
  It creates a virtual DOM, then uses reconciliation and updates the Fiber tree before reflecting the updates.
&lt;/p&gt;

&lt;p&gt;
  This can make the application slower due to runtime overhead.
&lt;/p&gt;

&lt;p&gt;
  Maintaining the React Fiber tree requires additional memory, which is not required in a vanilla JavaScript application due to its limited framework state.
&lt;/p&gt;





&lt;p&gt;
  In the case of React, it is not free to use.
&lt;/p&gt;

&lt;p&gt;
  You pay the cost through these trade-offs and mental models.
&lt;/p&gt;

</description>
      <category>react</category>
      <category>node</category>
      <category>webdev</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>What Problem Does React Solve Better Than Other Alternatives</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Mon, 02 Nov 2026 04:34:30 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/what-problem-does-react-solve-better-than-other-alternatives-2l22</link>
      <guid>https://dev.to/neel-vekariya/what-problem-does-react-solve-better-than-other-alternatives-2l22</guid>
      <description>&lt;p&gt;Did you ever think about what problem React actually tries to solve?&lt;/p&gt;

&lt;p&gt;So, the problem starts when you need to build a complex layout, and this layout depends on multiple states.&lt;/p&gt;

&lt;p&gt;Now, the problem starts. How do you keep this complex UI synchronized with changing application state without manually managing every DOM change?&lt;/p&gt;

&lt;p&gt;Before React, you needed to figure out which DOM elements were affected by a particular state change. Then, you needed to find those elements and modify them manually. You had to make sure every affected element was updated properly so the UI remained consistent with the application state.&lt;/p&gt;

&lt;p&gt;But React took a somewhat different approach. It changes the programming model, where the current state describes what the UI should look like. Now, React determines what needs to change and updates the host environment.&lt;/p&gt;

&lt;h2&gt;1. Direct DOM Manipulation&lt;/h2&gt;

&lt;p&gt;When the UI gets complicated and you need to change the UI in multiple places, the task becomes complicated because the developer has to manually maintain the relationships between application state and the UI.&lt;/p&gt;

&lt;p&gt;React manages DOM manipulation itself.&lt;/p&gt;

&lt;h2&gt;2. Declarative UI&lt;/h2&gt;

&lt;p&gt;In other frameworks or libraries, you need to explicitly say:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Do this.&lt;/li&gt;
  &lt;li&gt;Find that element.&lt;/li&gt;
  &lt;li&gt;Change its text.&lt;/li&gt;
  &lt;li&gt;Add the class.&lt;/li&gt;
  &lt;li&gt;Remove this button.&lt;/li&gt;
  &lt;li&gt;Show that button.&lt;/li&gt;
  &lt;li&gt;Hide that element.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is imperative UI.&lt;/p&gt;

&lt;p&gt;But React uses Declarative UI, where React takes responsibility for keeping the actual UI consistent with that declaration. This becomes the responsibility of the framework/runtime instead of the application's responsibility.&lt;/p&gt;

&lt;h2&gt;3. Change Propagation Problem&lt;/h2&gt;

&lt;p&gt;Change propagation means how you propagate this change throughout the UI.&lt;/p&gt;

&lt;p&gt;If you do this task manually, then there might be some chances of forgetting the changes in the UI.&lt;/p&gt;

&lt;p&gt;To eliminate this, React establishes a model where changes in state automatically re-render the relevant component tree and reconcile the result.&lt;/p&gt;

&lt;p&gt;These are the changes that React solves perfectly, but other frameworks or libraries miss out on.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>softwareengineering</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What Abstraction Does React Introduce?</title>
      <dc:creator>Neel-Vekariya</dc:creator>
      <pubDate>Sat, 31 Oct 2026 05:08:46 +0000</pubDate>
      <link>https://dev.to/neel-vekariya/what-abstraction-does-react-introduce-23h8</link>
      <guid>https://dev.to/neel-vekariya/what-abstraction-does-react-introduce-23h8</guid>
      <description>&lt;p&gt;
  JavaScript could already update the DOM.
&lt;/p&gt;

&lt;p&gt;
  So why did we need React?
&lt;/p&gt;

&lt;p&gt;
  In my previous post, we discussed the history of Web UI and how it
  evolved from HTML to React.
&lt;/p&gt;

&lt;p&gt;
  But there are many misconceptions about React.
&lt;/p&gt;

&lt;p&gt;
  One of them is that React removes DOM manipulation.
&lt;/p&gt;

&lt;p&gt;
  That’s not the proper way to understand it.
&lt;/p&gt;

&lt;p&gt;
  Instead, React abstracts DOM manipulation.
&lt;/p&gt;

&lt;p&gt;
  So, what is abstraction?
&lt;/p&gt;

&lt;p&gt;
  The bigger picture of React's abstraction is where you describe UI
  declaratively as a function of application state, organize UI into
  components, and then let React handle the synchronization between
  that description and the React rendering environment.
&lt;/p&gt;

&lt;p&gt;
  That is about the overall abstraction, which abstracts many
  underlying tasks.
&lt;/p&gt;

&lt;p&gt;
  Let's understand that.
&lt;/p&gt;

&lt;h3&gt;Abstractions&lt;/h3&gt;

&lt;h3&gt;1. DOM Mutations&lt;/h3&gt;

&lt;p&gt;
  DOM mutations mean abstracting low-level concepts and thinking
  about that abstraction.
&lt;/p&gt;

&lt;p&gt;
  Before React, you need to think about the DOM nodes, properties,
  DOM methods, and DOM events.
&lt;/p&gt;

&lt;p&gt;
  React abstracts that and introduces concepts like Components,
  Props, UI, and State.
&lt;/p&gt;

&lt;p&gt;
  This is similar to how higher-level programming languages
  abstract machine instructions.
&lt;/p&gt;

&lt;h3&gt;2. Declarative UI&lt;/h3&gt;

&lt;p&gt;
  Declarative means you describe what the result should be.
&lt;/p&gt;

&lt;p&gt;
  You are describing the desired UI.
&lt;/p&gt;

&lt;p&gt;
  You don't need to explicitly describe:
&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Create dashboard DOM.&lt;/li&gt;
  &lt;li&gt;Insert dashboard.&lt;/li&gt;
  &lt;li&gt;Update Button.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
  Instead, React tracks your declaration and manages the
  transition between them.
&lt;/p&gt;

&lt;p&gt;
  This separates "What" from "How".
&lt;/p&gt;

&lt;h3&gt;3. Component and State Abstraction&lt;/h3&gt;

&lt;p&gt;
  Before React, you needed to create reusable JavaScript
  functions intentionally.
&lt;/p&gt;

&lt;p&gt;
  But React makes UI itself composable.
&lt;/p&gt;

&lt;p&gt;
  This introduces the component abstraction.
&lt;/p&gt;

&lt;p&gt;
  State abstraction abstracts the tracking of what changed,
  which element depends on it, and what should I update.
&lt;/p&gt;

&lt;h3&gt;4. Abstraction as a Contract&lt;/h3&gt;

&lt;p&gt;
  In React, you describe the UI corresponding to the current state.
&lt;/p&gt;

&lt;p&gt;
  Now React is responsible for reconciling that description
  with the rendered UI.
&lt;/p&gt;

&lt;p&gt;
  Now the developer's responsibility becomes:
&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;What should the UI look like?&lt;/li&gt;
  &lt;li&gt;What state does it depend on?&lt;/li&gt;
  &lt;li&gt;How are components composed?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
  And React manages the responsibility for rendered work,
  reconciliation, scheduling, commit, and host environment updates.
&lt;/p&gt;

</description>
      <category>node</category>
      <category>webdev</category>
      <category>react</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
