<?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 Apeksha Verma on Medium]]></title>
        <description><![CDATA[Stories by Apeksha Verma on Medium]]></description>
        <link>https://medium.com/@itsapeksha16?source=rss-c253cfeaa69f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0xgdt9kU_E6BbGld5_oVdA.jpeg</url>
            <title>Stories by Apeksha Verma on Medium</title>
            <link>https://medium.com/@itsapeksha16?source=rss-c253cfeaa69f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:09:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itsapeksha16/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[AI vs. Human Creativity: Clash, Collaboration, or Co-Evolution?]]></title>
            <link>https://medium.com/@itsapeksha16/ai-vs-human-creativity-clash-collaboration-or-co-evolution-74c095cb97da?source=rss-c253cfeaa69f------2</link>
            <guid isPermaLink="false">https://medium.com/p/74c095cb97da</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[evolution]]></category>
            <dc:creator><![CDATA[Apeksha Verma]]></dc:creator>
            <pubDate>Fri, 05 Sep 2025 16:23:06 GMT</pubDate>
            <atom:updated>2025-09-05T16:23:06.057Z</atom:updated>
            <content:encoded><![CDATA[<p>Creativity has always been considered the crown jewel of human intelligence. From cave paintings to symphonies, from novels to skyscrapers, our ability to imagine something that doesn’t exist and bring it to life has set us apart as a species.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xbf9gNXf-XOnhiON.jpg" /><figcaption>AI is not “artificial” intelligence, it’s human intelligence | The Independent</figcaption></figure><p>But we now stand at a fascinating crossroads. Artificial Intelligence, once confined to number-crunching and automation, has crossed into what many thought was sacred human territory: <strong>creativity.</strong> AI can now write poems, generate art, compose music, and even design products. Tools like ChatGPT, MidJourney, and DALL·E have sparked both excitement and anxiety: <em>if machines can be creative, what happens to human creativity?</em></p><p>In this article, we’ll explore the tension — and harmony — between AI and human creativity. Is this a battle, a partnership, or the birth of a new kind of imagination?</p><h3>The Rise of Creative AI</h3><p>AI has made breathtaking strides in the past decade. What once took specialized human skill — like painting a landscape, writing a screenplay, or composing a melody — can now be attempted by a model trained on vast datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3HKOtw54RaZiNCF1V-T2Q.png" /><figcaption>Two AIs face off in a clash of imagination — symbolizing the fiery tension and explosive potential of machine-driven creativity</figcaption></figure><ul><li><strong>Writing:</strong> ChatGPT and other large language models can draft stories, essays, and scripts in minutes.</li><li><strong>Art:</strong> MidJourney and Stable Diffusion generate stunning digital art, often indistinguishable from professional work.</li><li><strong>Music:</strong> AI tools compose symphonies, rap verses, and ambient soundtracks with minimal input.</li><li><strong>Design &amp; Innovation:</strong> AI aids in architecture, fashion, and product design by generating multiple prototypes.</li></ul><p>This has led to a crucial question: <em>if AI can “create,” what’s left for humans?</em></p><h3>What We Mean by Creativity</h3><p>Before declaring AI as “creative,” it’s important to ask: what does creativity really mean?</p><p>At its core, creativity involves:</p><ol><li><strong>Originality</strong> — producing something novel.</li><li><strong>Value</strong> — creating something meaningful, useful, or emotionally resonant.</li><li><strong>Context</strong> — drawing from culture, history, and human experience.</li></ol><p>AI excels at generating <em>originality</em> through recombination. Feed it a dataset of 1 million paintings, and it can create an infinite number of new ones. But whether those creations carry <em>value</em> or <em>context</em> is debatable.</p><p>Humans create not just from data, but from lived experience: heartbreak, joy, struggle, curiosity. A painting by Van Gogh isn’t just brushstrokes — it’s the echo of his pain, his era, his personal vision. That’s something AI, at least for now, cannot replicate.</p><h3>The Strengths of AI Creativity</h3><p>AI does bring some unique creative advantages:</p><ul><li><strong>Speed &amp; Scale:</strong> A writer may take weeks to draft a novel; AI can generate ten outlines in seconds.</li><li><strong>Idea Generation:</strong> AI can brainstorm endlessly without fatigue — useful for breaking creative blocks.</li><li><strong>Accessibility:</strong> Non-artists can now make digital paintings or music using AI tools. Creativity has been democratized.</li><li><strong>Pattern Recognition:</strong> AI can spot trends in massive datasets — helping predict what kind of content, design, or story might resonate.</li></ul><p>In many ways, AI acts as a <strong>creative amplifier</strong>, giving humans more tools and possibilities than ever before.</p><h3>The Limits of AI Creativity</h3><p>Yet, AI creativity has boundaries:</p><ul><li><strong>No Consciousness or Emotion:</strong> AI doesn’t feel joy, pain, or awe. It can simulate empathy in writing, but it doesn’t <em>experience</em> it.</li><li><strong>Dependence on Data:</strong> AI only knows what it has been trained on — it can remix but not truly “imagine” beyond its dataset.</li><li><strong>Lack of Intentionality:</strong> Humans create with goals, beliefs, and values. AI generates outputs but has no purpose behind them.</li><li><strong>Risk of Homogenization:</strong> If everyone relies on the same AI tools, creative output may start to look and feel the same.</li></ul><p>This is why, despite AI’s prowess, many still believe true creativity remains uniquely human.</p><h3>Humans + AI: The New Creative Partnership</h3><p>Rather than treating AI as a rival, many creators are embracing it as a <strong>collaborator.</strong> Think of AI as the brush, not the painter; the assistant, not the artist.</p><ul><li><strong>Writers</strong> use AI for outlines, then add their own voice, nuance, and storytelling.</li><li><strong>Designers</strong> generate prototypes with AI, then refine them with human taste and cultural insight.</li><li><strong>Musicians</strong> co-compose with AI tools, blending human improvisation with machine-generated harmonies.</li><li><strong>Educators &amp; Researchers</strong> brainstorm lesson plans or research directions with AI support.</li></ul><p>This synergy leads to something new: <strong>co-creativity.</strong> Humans provide intention, emotion, and meaning. AI provides speed, variation, and surprise. Together, they push the boundaries of what’s possible.</p><h3>The Fear Factor: Job Loss vs. Job Evolution</h3><p>One of the biggest fears is: <em>will AI replace human creatives?</em></p><p>The truth is nuanced. Some routine creative jobs (like stock photography or basic copywriting) may shrink. But new roles are already emerging: <strong>AI prompt engineers, creative directors for AI workflows, human-AI collaboration specialists.</strong></p><p>History shows that every new tool — from the printing press to digital photography — was initially feared but ultimately expanded human creativity. Those who adapt tend to thrive.</p><p>The key shift is this: <strong>human creativity will move from producing content to directing creativity.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIFDymPNP5Dmi60X3zxfMA.png" /><figcaption>Humans and AI creating side by side — where imagination meets algorithms in a shared space of art, music, and innovation.</figcaption></figure><h3>The Future: What Does Creativity Look Like in 2030?</h3><p>Looking ahead, we might see:</p><ul><li><strong>Personalized Creative Assistants:</strong> AI that learns your unique style and co-creates in your voice.</li><li><strong>Hybrid Art Forms:</strong> Music, literature, and art created in part by humans, in part by machines, inseparable in origin.</li><li><strong>Cultural Re-definition of Art:</strong> The value of human-only work may rise, like handmade goods in a world of mass production.</li><li><strong>New Ethical Questions:</strong> Who owns AI-generated art? Should AI works win awards? How do we credit the machine vs. the human?</li></ul><p>The answers will shape not just art and writing, but our very definition of <em>what it means to create.</em></p><h3>Final Thoughts</h3><p>The conversation of AI vs. human creativity isn’t about who wins — it’s about how the two redefine each other.</p><ul><li>If AI generates a painting, is it art? Maybe.</li><li>If a human uses AI to explore ideas they couldn’t on their own, is that less creative? Not necessarily.</li><li>Perhaps the real question is not <em>“Can AI be creative?”</em> but <em>“How do we use AI to expand human creativity?”</em></li></ul><p>In the end, creativity may not be a zero-sum game. The machine doesn’t replace the artist; it challenges us to go deeper into what makes us human: our ability to feel, to imagine, to connect.</p><p>And maybe that’s the most creative act of all — learning to dance with the very tools we once feared.</p><p><strong>Key Takeaway:</strong><br> AI is not the death of human creativity, but the birth of a new era where humans and machines co-create, pushing imagination beyond old limits. The question isn’t “AI or humans?” — it’s “AI <em>with</em> humans.”</p><p>Feel free to share your opinion in the comments! See you next time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74c095cb97da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding CORS (Cross-Origin Resource Sharing) in React]]></title>
            <link>https://medium.com/@itsapeksha16/understanding-cors-cross-origin-resource-sharing-in-react-fd0336ade18a?source=rss-c253cfeaa69f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd0336ade18a</guid>
            <category><![CDATA[cors]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Apeksha Verma]]></dc:creator>
            <pubDate>Fri, 05 Sep 2025 16:08:55 GMT</pubDate>
            <atom:updated>2025-09-05T16:08:55.107Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever worked with APIs in React, chances are you’ve run into the dreaded <strong>CORS error</strong> at some point. It usually looks something like this:</p><pre>Access to fetch at &#39;http://localhost:5000/data&#39; <br>from origin &#39;http://localhost:3000&#39; has been blocked by CORS policy.</pre><p>Frustrating, right? 😅<br> But don’t worry — it’s not React’s fault. It’s a <strong>browser security feature</strong> called <strong>CORS (Cross-Origin Resource Sharing)</strong>.</p><p>Let’s break it down step by step.</p><h3>What is CORS?</h3><p>CORS stands for <strong>Cross-Origin Resource Sharing</strong>.<br> It’s a <strong>security mechanism built into browsers</strong> that determines whether a web page from one <strong>origin</strong> (domain, protocol, port) can request data from another origin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CkG72-HAzcRcNRcvr_2_hA.png" /><figcaption>Understanding CORS: Requests from an origin can either be allowed or blocked depending on server rules</figcaption></figure><p>In simple words:</p><ul><li><strong>Same origin?</strong> Allowed by default.</li><li><strong>Different origin?</strong> Blocked unless the server explicitly says it’s safe.</li></ul><h3>Example of Same vs Different Origin</h3><ul><li><strong>Same Origin</strong> ✅<br> https://myapp.com → requests → <a href="https://myapp.com/api">https://myapp.com/api</a></li><li><strong>Cross-Origin</strong> ❌<br> https://myapp.com → requests → <a href="https://api.othersite.com/">https://api.othersite.com</a></li></ul><p>By default, the second case is <strong>blocked</strong> unless the server at api.othersite.com adds the right CORS headers.</p><h3>Why Do We Need CORS?</h3><p>CORS exists to <strong>protect users</strong>. Without it, a malicious site could secretly send requests to another site where you’re logged in and steal your data.</p><p>It ensures that:</p><ul><li>Only <strong>trusted domains</strong> can access server resources.</li><li>APIs have control over <strong>who can consume their data</strong>.</li></ul><h3>How CORS Works</h3><p>When your React app makes a cross-origin request:</p><ol><li>The <strong>browser sends a preflight request</strong> (an OPTIONS request) to the server.</li><li>The server responds with headers like:</li></ol><pre>Access-Control-Allow-Origin: https://myapp.com<br>Access-Control-Allow-Methods: GET, POST<br>Access-Control-Allow-Headers: Content-Type</pre><p>3. If the headers match your origin → ✅ request succeeds.<br> Otherwise → ❌ blocked by the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSNqbEEquSa3mYNgqcW8yg.png" /><figcaption>Flow of a CORS Request: How the browser mediates between frontend and backend, deciding whether requests are allowed or blocked</figcaption></figure><h3>Fixing CORS in React Projects</h3><p>React itself can’t fix CORS — the fix must happen <strong>on the backend</strong>.</p><h3>Example in Express.js:</h3><pre>const express = require(&quot;express&quot;);<br>const cors = require(&quot;cors&quot;);<br><br>const app = express();<br>app.use(cors({ origin: &quot;http://localhost:3000&quot; }));<br><br>app.get(&quot;/data&quot;, (req, res) =&gt; {<br>  res.json({ message: &quot;Hello from backend!&quot; });<br>});<br><br>app.listen(5000, () =&gt; console.log(&quot;Server running on port 5000&quot;));</pre><p>Here, only requests from http://localhost:3000 are allowed.</p><h3>Key Takeaways</h3><ul><li><strong>CORS is not a React error</strong> → it’s a <strong>browser security rule</strong>.</li><li>It protects users from malicious cross-site requests.</li><li>You must configure CORS <strong>on the backend</strong> (Node.js, Django, Spring Boot, etc.).</li><li>Use tools like npm cors in Express for quick fixes during development.</li></ul><p>Next time you hit a CORS error, you’ll know it’s not React misbehaving — it’s your backend asking you to set the right permissions.</p><p>Feel free to share your opinion in the comments! See you next time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd0336ade18a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding ~and ^ in React’s package.json]]></title>
            <link>https://medium.com/@itsapeksha16/understanding-and-in-reacts-package-json-4e06b21a85a9?source=rss-c253cfeaa69f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e06b21a85a9</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[devdependencies]]></category>
            <category><![CDATA[package]]></category>
            <category><![CDATA[npm-package]]></category>
            <category><![CDATA[dependencies]]></category>
            <dc:creator><![CDATA[Apeksha Verma]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 16:11:59 GMT</pubDate>
            <atom:updated>2025-09-03T16:12:19.915Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with React or any JavaScript project, you’ll often open package.json and see something like this:</p><pre>&quot;devDependencies&quot;: {<br>  &quot;eslint&quot;: &quot;^8.55.0&quot;,<br>  &quot;webpack&quot;: &quot;~5.90.0&quot;<br>}</pre><p>At first glance, these symbols — ~ (tilde) and ^ (caret) — may look confusing. But they actually play a <strong>key role</strong> in controlling how npm (or yarn, pnpm) installs versions of your packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cks15o6KVxGe0L4ABY_HQg.png" /><figcaption>Knowing the difference helps you control dependency versions better in your React projects!</figcaption></figure><p>Let’s break it down 👇</p><h3>npm Versioning (SemVer Basics)</h3><p>npm uses <strong>Semantic Versioning (SemVer)</strong>, which follows the pattern:</p><p>MAJOR.MINOR.PATCH</p><p>Example: 5.90.2</p><ul><li><strong>MAJOR</strong> → 5</li><li><strong>MINOR</strong> → 90</li><li><strong>PATCH</strong> → 2</li></ul><p>Each number tells us something about changes in the library:</p><ul><li><strong>MAJOR</strong> → Breaking changes</li><li><strong>MINOR</strong> → New features (backward-compatible)</li><li><strong>PATCH</strong> → Bug fixes</li></ul><h3>What ^ (Caret) Means</h3><p>Example:</p><pre>&quot;eslint&quot;: &quot;^8.55.0&quot;</pre><ul><li>The caret ^ allows updates that do <strong>not change the MAJOR version</strong>.</li><li>So it can install:</li></ul><p>✅ 8.56.0, 8.99.0</p><p>❌ Not 9.0.0</p><p><strong>When to use it:</strong><br> 👉 When you want flexibility and are okay with automatically receiving <strong>minor updates &amp; fixes</strong>.</p><h3>What ~ (Tilde) Means</h3><p>Example:</p><pre>&quot;webpack&quot;: &quot;~5.90.0&quot;</pre><ul><li>The tilde ~ allows only <strong>PATCH updates</strong>.</li><li>So it can install:</li></ul><p>✅ 5.90.1, 5.90.2</p><p>❌ Not 5.91.0</p><p><strong>When to use it:</strong><br> When you want <strong>stability</strong> and don’t want unexpected minor changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qu3TAEzEbO_WYNLMEW_IQ.png" /><figcaption>Knowing when to use each helps balance stability and feature upgrades in your React projects!</figcaption></figure><h3>Why It Matters in React Projects</h3><ul><li>^ helps keep your project <strong>up-to-date</strong> with bug fixes &amp; small improvements.</li><li>~ helps keep your project <strong>stable</strong>, especially for production-critical apps.</li><li>Together, they balance <strong>flexibility vs. safety</strong> in your dependencies.</li></ul><h3>Key Takeaway</h3><p>Whenever you see ^ or ~ in your React project’s package.json:</p><ul><li><strong>^ → Auto-updates for MINOR + PATCH (but not MAJOR).</strong></li><li><strong>~ → Auto-updates for PATCH only.</strong></li></ul><p>So next time you install a package, you’ll know exactly why npm pulls a certain version.</p><p>Feel free to share your opinion in the comments! See you next time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e06b21a85a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Browserslist in React: Ensuring Cross-Browser Compatibility]]></title>
            <link>https://medium.com/@itsapeksha16/browserslist-in-react-ensuring-cross-browser-compatibility-5d16e203bfc6?source=rss-c253cfeaa69f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d16e203bfc6</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[babel]]></category>
            <category><![CDATA[browserslist]]></category>
            <category><![CDATA[parcel]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Apeksha Verma]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 09:43:49 GMT</pubDate>
            <atom:updated>2025-09-03T09:43:49.941Z</atom:updated>
            <content:encoded><![CDATA[<p>When building React apps, we often assume our code will <em>“just work”</em> everywhere. But the reality is — different browsers support different features.</p><p>That’s where <strong>Browserslist</strong> comes in.</p><p>In this article, we’ll explore:</p><ul><li>What Browserslist is</li><li>How it works with React tooling (Babel, Autoprefixer, Webpack, Parcel)</li><li>Example configurations</li><li>Why it matters for modern React apps</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UtFkMJoJSWVQmra0" /><figcaption>How Browserslist bridges your React code with real-world browsers through tools like Babel &amp; Parcel</figcaption></figure><h3>What is Browserslist?</h3><p>Browserslist is a <strong>configuration file</strong> that tells build tools <em>which browsers your app should support</em>.</p><p>Based on this config, tools automatically:</p><ul><li>Add <strong>polyfills</strong> for missing JavaScript features.</li><li>Add <strong>vendor prefixes</strong> for CSS (e.g., -webkit-, -moz-).</li><li>Optimize the build by <strong>excluding unnecessary code</strong> for outdated browsers.</li></ul><p>This means your React app will run smoothly across a wide audience without you having to manually worry about browser quirks.</p><h3>Example in a React Project</h3><p>In your package.json, you might see:</p><pre>&quot;browserslist&quot;: [<br>  &quot;&gt;0.5%&quot;,<br>  &quot;last 2 versions&quot;,<br>  &quot;not dead&quot;<br>]</pre><h3>Breakdown:</h3><p>&gt;0.5% Support browsers used by more than 0.5% of global users.</p><p>last 2 versions Support the two latest versions of each browser.</p><p>not dead Exclude outdated browsers that no longer receive updates or security fixes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dM2dmbTNGHpgalDW6Tgtow.png" /><figcaption>Browserslist in action — targeting the <em>last 2 versions</em> gives 77% global browser coverage across desktop and mobile</figcaption></figure><h3>Why Browserslist Matters</h3><ol><li><strong>Cross-browser compatibility</strong></li></ol><ul><li>Your React app works for a wider audience.</li></ul><p>2. <strong>Smaller bundle size</strong></p><ul><li>No need to ship polyfills for outdated browsers.</li></ul><p><strong>3. Security &amp; maintenance</strong></p><ul><li>You avoid supporting “dead” browsers with no security updates.</li></ul><p><strong>4. Developer productivity</strong></p><ul><li>No more manual prefixing or compatibility hacks.</li></ul><h3>Key Takeaway</h3><p>With <strong>Browserslist</strong>, you define browser support <em>once</em> — and your tools (Babel, Autoprefixer, Webpack, Parcel) take care of the rest.</p><p>So next time you use optional chaining (?.) or modern CSS features like <strong>grid layout</strong>, you can trust that Browserslist + your toolchain will handle browser compatibility for you.</p><p>In short: <strong>Write modern React code, let Browserslist handle the old browsers.</strong></p><p>Feel free to share your opinion in the comments! See you next time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d16e203bfc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Transitive Dependencies in React.Js Projects]]></title>
            <link>https://medium.com/@itsapeksha16/understanding-transitive-dependencies-in-react-js-projects-61d78758fdaa?source=rss-c253cfeaa69f------2</link>
            <guid isPermaLink="false">https://medium.com/p/61d78758fdaa</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Apeksha Verma]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 17:42:49 GMT</pubDate>
            <atom:updated>2025-09-01T17:42:49.727Z</atom:updated>
            <content:encoded><![CDATA[<p>When building React.js applications, we often use package managers like <strong>npm</strong> or <strong>yarn</strong> to install libraries. But have you noticed that installing a single package can suddenly add dozens of other packages inside your node_modules folder?</p><p>Those extra packages are called <strong>transitive dependencies</strong>.</p><p>In this article, we’ll break down what they are, why they matter in React projects, and how to manage them effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0comdVfvVWX0Xfr5BP7I9A.png" /><figcaption>Transitive Dependencies</figcaption></figure><h3>What Are Transitive Dependencies?</h3><p>In React projects, dependencies fall into two categories:</p><ul><li><strong>Direct dependency</strong> → The package you explicitly install (e.g., react, react-dom).</li><li><strong>Transitive dependency</strong> → The <em>dependencies of your dependencies</em>.</li></ul><p>👉 In simple terms: <em>Your installed packages also rely on other packages to function. Those hidden ones are transitive dependencies.</em></p><p><strong>Example in React</strong></p><p>Suppose you run:</p><pre>npm install react</pre><p>You might think you only installed <strong>React</strong>. But if you open your package-lock.json, you’ll notice more packages got installed automatically.</p><p>Some examples:</p><ul><li>loose-envify → used by React to strip development-only code in production.</li><li>object-assign → a small helper for merging objects.</li><li>scheduler → used internally by React to manage rendering priorities.</li></ul><p>So, even though you only asked for <strong>React</strong>, you also pulled in several <strong>transitive dependencies</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UqzdWP34O4HoL77KkOmTGA.png" /><figcaption>TD explained</figcaption></figure><h3><strong>Why Do Transitive Dependencies Matter in React Apps?</strong></h3><ol><li><strong>Project Size</strong></li></ol><ul><li>Your node_modules can quickly grow huge because of nested dependencies.</li></ul><p><strong>2. Security Risks</strong></p><ul><li>Vulnerabilities in a small transitive dependency can affect your React app.</li><li>Run audits using:</li><li>npm audit</li><li>yarn audit</li></ul><p><strong>3. Debugging Issues</strong></p><ul><li>Sometimes React errors are caused by bugs in transitive dependencies, not in React itself.</li></ul><p><strong>4. Build Stability</strong></p><ul><li>Without a lockfile (package-lock.json or yarn.lock), different environments may pull in slightly different versions of transitive dependencies, causing “works on my machine” issues.</li></ul><h3><strong>How to Manage Them</strong></h3><ul><li><strong>Always commit your lockfile</strong> (package-lock.json or yarn.lock) to ensure consistency.</li><li><strong>Run </strong><strong>npm audit regularly</strong> to check for vulnerabilities.</li><li><strong>Update wisely</strong> with tools like npm-check-updates.</li><li><strong>Stick to trusted libraries</strong> in the React ecosystem to avoid risky chains of dependencies.</li></ul><h3>Key Takeaway</h3><p>In React.js, you’re never just installing React — you’re also bringing in the ecosystem of <strong>transitive dependencies</strong> it relies on.</p><p>Understanding them helps you keep your app <strong>secure, stable, and optimized</strong>.</p><p>✅ That’s it! Next time you run npm install, remember: you’re not just installing one package, you’re inheriting its <em>family tree</em> of dependencies.</p><p>Feel free to share your opinion in the comments! See you next time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61d78758fdaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>