<?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 Nachatra Sharma on Medium]]></title>
        <description><![CDATA[Stories by Nachatra Sharma on Medium]]></description>
        <link>https://medium.com/@sharmanachatra?source=rss-a49034d9fb46------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*z1nzmW6WJ7NheyZF6DP26g.jpeg</url>
            <title>Stories by Nachatra Sharma on Medium</title>
            <link>https://medium.com/@sharmanachatra?source=rss-a49034d9fb46------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:56:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sharmanachatra/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[Under the Hood: Why React Needs Immutable State ]]></title>
            <link>https://medium.com/@sharmanachatra/under-the-hood-why-react-needs-immutable-state-cbc71044d7f1?source=rss-a49034d9fb46------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbc71044d7f1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-core-concept]]></category>
            <category><![CDATA[javascript-frameworks]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Nachatra Sharma]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 16:39:00 GMT</pubDate>
            <atom:updated>2025-12-02T16:39:00.683Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZF6-_i_jV3S6hSUzko_Rw.png" /></figure><p>As a beginner, I also wonder why we need to create a new array or object when updating a state variable. Why can’t we mutate the current value variable? In this blog, I have shared a detailed view from my perspective on why React state changes have to be <em>immutable.</em></p><p>How does React check for state updates?</p><p>So, here is the catch: React doesn’t check for values. Instead, React relies on a very cheap and fast check.</p><pre>oldState === newState // shallow reference comparison</pre><p>React uses references to detect changes ( objects and arrays in JavaScript are stored by reference )</p><pre>const a = [1, 2];<br>const b = a;     // b references the same array</pre><p>If you mutate the array</p><pre>a.push(3);       // both a and b change</pre><p>But the reference stays the same. So React sees this</p><pre>previousState === nextState  // true</pre><p>React thinks nothing has changed, so it skips the re-render. That’s why we need to create a new copy of the array — to let React know that something has actually been updated. Never mutate React state (even when it seems to work)</p><ol><li>Create a new array/object</li><li>Modify that new array/object</li><li>Set the new array/object into the state.</li></ol><p><strong>Thanks for taking the time to read my blog.</strong><br> I genuinely appreciate it. Concepts like immutability can seem small, but they shape how React actually works behind the scenes. ✌️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbc71044d7f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Do We Need to Import React?]]></title>
            <link>https://medium.com/@sharmanachatra/why-do-we-need-to-import-react-3013c09b02c0?source=rss-a49034d9fb46------2</link>
            <guid isPermaLink="false">https://medium.com/p/3013c09b02c0</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[import]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[Nachatra Sharma]]></dc:creator>
            <pubDate>Sat, 29 Nov 2025 11:18:29 GMT</pubDate>
            <atom:updated>2025-11-29T11:18:29.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f2hIP6N52kVS8_cR" /><figcaption>Photo by <a href="https://unsplash.com/@lautaroandreani?utm_source=medium&amp;utm_medium=referral">Lautaro Andreani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When I first started learning React, I used to look at that very first line of code</p><pre>import React from &quot;react&quot;;</pre><p>and think why am I even importing React when I’m not using it anywhere in my file?</p><p>If you’ve had the same confusion, you’re not alone. Let’s break it down in a simple, practical way.</p><h4>The Confusing Part: React Isn’t Used… Right?</h4><p>Look at this example:</p><pre>import React from &quot;react&quot;;<br>import { createRoot } from &quot;react-dom/client&quot;;<br><br>const element = (<br>  &lt;p id=&quot;hello&quot;&gt;<br>    Hello World!<br>  &lt;/p&gt;<br>);<br><br>const container = document.querySelector(&#39;#root&#39;);<br>const root = createRoot(container);<br>root.render(element);</pre><p>At first look, React seems unused. There’s no React.something() only JSX and a render function. So why is the import necessary?</p><h4>The Missing Piece: JSX Isn’t Real JavaScript</h4><p>This is where the confusion comes in. The browser <strong>cannot</strong> understand JSX. It only understands plain JavaScript. So tools like <strong>Babel</strong> take your JSX and convert it into something the browser <em>can</em> understand.</p><pre>const element = React.createElement(<br>  &quot;p&quot;,<br>  { id: &quot;hello&quot; },<br>  &quot;Hello World!&quot;<br>);</pre><p>React is now being used.<strong> </strong>The JSX you wrote gets turned into React.createElement() behind the scenes. This is why React needed to be imported because Babel expects it to exist when converting JSX. If you removed the import, you’d see an error like:</p><pre>Error: React is not defined</pre><h4>But Wait Do We Still Need to Import React Today?</h4><p>With React 17+ and the new JSX Transform, importing React is no longer required. The new JSX transform doesn’t use React.createElement() internally anymore. However many older codebases still include the import, so understanding <em>why</em> it existed is still valuable.</p><p>Thanks a lot for taking the time to read this blog. I hope it helped clear up the confusion around why we used to import React. If you found this useful, feel free to explore more posts, share it with someone who might be learning React, or drop your thoughts in the comments. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3013c09b02c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginners Guide for Git & GitHub]]></title>
            <link>https://medium.com/@sharmanachatra/beginners-guide-for-git-github-2063b72df2f5?source=rss-a49034d9fb46------2</link>
            <guid isPermaLink="false">https://medium.com/p/2063b72df2f5</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[basic-git-commands]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git-commands]]></category>
            <dc:creator><![CDATA[Nachatra Sharma]]></dc:creator>
            <pubDate>Thu, 06 Nov 2025 02:44:48 GMT</pubDate>
            <atom:updated>2025-11-06T02:44:48.897Z</atom:updated>
            <content:encoded><![CDATA[<p>When I was an intern, I used to spend a lot of time figuring things out. I asked too many silly questions and was always scared to use Git commands — I genuinely thought one wrong command could break the entire codebase 🥲. But then my senior guided me and taught me some basic Git commands. They might have seemed simple to him, but for me, they were a total game-changer. Now I can easily navigate through commits, and even handle rebasing and conflicts without fear.</p><p>The reason I’m sharing my story is because, just like me, there are many others who face the same struggles. Unfortunately, not everyone has someone to guide them through these things. That’s why I’ve decided to write a blog and share everything I’ve learned so far — so it can help others who are just starting their journey.</p><blockquote>What is Git &amp; GitHub ?</blockquote><p><strong>Git</strong> is a version control tool that helps you track and manage changes in your code or project. It allows you to work on different versions of your software, collaborate with others, and easily go back to previous versions when needed.</p><p>On the other hand, <strong>GitHub</strong> is a cloud-based platform that lets you store your Git repositories online. It provides a space where you can host your code, collaborate with teammates, and manage your projects using Git commands.</p><p>To download <strong>Git</strong> for your operating system, you can visit the official website using the link below 🔗</p><p><a href="https://git-scm.com/install/">Install</a></p><p>After downloading, you can verify that Git was installed correctly by checking its version. Open your terminal and run the following command:</p><pre>git --version</pre><blockquote>Areas in Git</blockquote><ul><li>working area There can be a bunch of files which are currently not tracked by git. Means, if we make any changes to those files git will not gonna track those changes. When we do <strong><em>git status</em></strong> and we see a bunch of <strong><em>untracked file</em></strong> which actually consider to be in working area.</li><li>staging area What all files are going to be the part of the next version that we will create. In this staging area git tracks what all changes we have done from prev version to the current version.</li><li>repository area This area actually contains all the details of the prev version. And files of this area git is already track them and there version, history of the changes.</li></ul><figure><img alt="Git Areas Image" src="https://cdn-images-1.medium.com/max/1024/1*oc7_QzQe9fxpfi4f1pmoVQ.png" /></figure><blockquote>Basic Git Commands</blockquote><ol><li>git init It will initialise git in your current working directory. Also this command gonna create a hidden folder name as .git in your current working dir.</li><li>git status It helps you see which files have been <strong>modified</strong>, <strong>staged</strong>, or are <strong>untracked</strong> by Git.</li><li>git add &lt;file_name&gt; move file from working area to staging area.</li><li>git restore --staged &lt;file_name&gt; move file back from staging are to working area.</li><li>git commit is used to save your staged changes as a new version in the repository. In simple terms, it take a snapshot of all the file you’ve added to the <strong>staging area</strong> and creates a new version of your project.</li><li>git log list down all the previous commit of the repository. If you want to exit out of the git log prompt press ‘q’.</li><li>git remote list down all the remote connection names.</li><li>git remote add &lt;name_of_the_remote_connection&gt; &lt;link_of_the_remote_connection&gt;` this command help us to add a new link to the remote repository and give a name to it.</li><li>git push &lt;name_of_the_remote_connection&gt; &lt;branch_name&gt; it will push all the commits which are pending to move to the remote repository.</li></ol><p>I hope this post helped you understand the basics of Git and GitHub. I’ll be sharing more practical guides and concepts in the next blogs — stay connected! ✌️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2063b72df2f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design : What is Latency and Throughput ?]]></title>
            <link>https://medium.com/@sharmanachatra/latency-and-throughput-28ba519e6fe7?source=rss-a49034d9fb46------2</link>
            <guid isPermaLink="false">https://medium.com/p/28ba519e6fe7</guid>
            <category><![CDATA[throughput]]></category>
            <category><![CDATA[load-balancer]]></category>
            <category><![CDATA[client-server-model]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[latency]]></category>
            <dc:creator><![CDATA[Nachatra Sharma]]></dc:creator>
            <pubDate>Sat, 25 Oct 2025 04:20:18 GMT</pubDate>
            <atom:updated>2025-10-29T05:35:41.753Z</atom:updated>
            <content:encoded><![CDATA[<p>I was learning system design recently, and I came across two catchy terms <strong>latency</strong> and <strong>throughput</strong>. I know many of you are already familiar with these concepts, but here’s the thing this blog will take just a few minutes to read, and I believe it’ll be a great way to quickly refresh some important ideas about latency and throughput.</p><blockquote>What is Latency and throughput ?</blockquote><p>Let’s start with <strong>latency</strong>. It’s used to describe the time interval a request–response cycle takes. Imagine your device is the <strong>client</strong>, and the platform hosting this blog is the <strong>server</strong>. When you click to read this post, your device sends a request to the server to fetch the blog data. The time taken for that request to reach the server and for the response to return to your device is what we call <strong>latency</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yeIbQ9bqTJbrWHug9y_sLg.png" /></figure><p>Now, let’s move on to the next topic — <strong>throughput</strong>. It describes how many requests a server can process within a specific time interval. In simple terms, <strong>throughput</strong> measures the amount of work a system can handle over a given period.</p><blockquote>Why this is important ?</blockquote><p>Let’s say you’re in <strong>India</strong>, and the server handling your request is located on another continent. In that case, there’s a high chance of experiencing <strong>high latency</strong> because the data has to travel a longer distance.</p><p>Now, imagine the company uses a <strong>geographically distributed load balancer</strong>. It detects that your request originated from Asia and routes it to the nearest server let’s say one located in Singapore. This reduces the latency significantly, providing a faster response time.</p><p>Lower latency doesn’t just improve user experience it can also have a <strong>direct impact on your business</strong>, as faster systems tend to keep users more engaged and satisfied.</p><p>In my next blog, I’ll talk about <strong>how to test the performance of an API</strong> and ways to <strong>improve it</strong> to ensure your backend system is robust enough to handle high traffic. These performance tests also help you understand the <strong>true capabilities of your system</strong> how much load it can take before things start to slow down or break.</p><p><em>References:</em></p><blockquote><a href="https://www.cloudflare.com/learning/performance/more/website-performance-conversion-rates/">https://www.cloudflare.com/learning/performance/more/website-performance-conversion-rates/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28ba519e6fe7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up Expo Build for Your Organization: A Step-by-Step Guide !]]></title>
            <link>https://medium.com/@sharmanachatra/how-to-set-up-expo-build-for-your-organization-a-step-by-step-guide-75a348fb0298?source=rss-a49034d9fb46------2</link>
            <guid isPermaLink="false">https://medium.com/p/75a348fb0298</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[build]]></category>
            <category><![CDATA[production]]></category>
            <dc:creator><![CDATA[Nachatra Sharma]]></dc:creator>
            <pubDate>Wed, 09 Jul 2025 15:45:20 GMT</pubDate>
            <atom:updated>2025-07-09T15:45:20.645Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Set Up Expo Build for Your Organization: A Step-by-Step Guide !</h3><p><strong>Long story short — when I started building a React Native app for my organization, I hit a roadblock during the build process.</strong> The issue? My terminal was authenticated with my personal Expo account, so every build was tied to <em>my</em> credentials — something no one wants when working on an organization project.</p><p>It took me a fair bit of time (and frustration) to figure out how to switch and use the <strong>organization’s Expo account</strong> for the build instead. While the solution is simple, it’s not obvious for first-timers and definitely requires some digging around. Let’s dive into the build process.</p><ol><li>Login to <a href="https://expo.dev/accounts/">expo</a> switch to organization account from here</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*nU-tyCDKRhVK42ALOE-LmQ.png" /><figcaption>Expo Website</figcaption></figure><p>2. After switching on organization account add new project if the project is not listed inside the <strong>All Projects</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*UFOLe3psyTCX-NM2auPCGw.png" /></figure><p>3. Now, go to that project get the values of the slug owner projectId</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDUmup7s8qht0902961hOg.png" /><figcaption>Expo Project Details</figcaption></figure><p>4. Now open app.json file and replace this value with that dashboard values.</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;slug&quot;: &quot;&quot;,<br>    &quot;owner&quot;: &quot;&quot;,<br>    &quot;extra&quot;: {<br>      &quot;eas&quot;: {<br>        &quot;projectId&quot;: &quot;&quot;<br>      }<br>    }<br>  }<br>}</pre><p>5. Now you’re good to go you can start building the internal and production build</p><p>Thanks for reading the blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75a348fb0298" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Custom Fonts in Next.JS 15 (Step-by-Step Guide) ??]]></title>
            <link>https://medium.com/@sharmanachatra/how-to-add-custom-fonts-in-next-js-15-step-by-step-guide-0934ce1858d0?source=rss-a49034d9fb46------2</link>
            <guid isPermaLink="false">https://medium.com/p/0934ce1858d0</guid>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[custom-fonts]]></category>
            <category><![CDATA[nextjs-15]]></category>
            <category><![CDATA[nextjs-tutorial]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Nachatra Sharma]]></dc:creator>
            <pubDate>Thu, 08 May 2025 02:50:47 GMT</pubDate>
            <atom:updated>2025-05-08T02:50:47.214Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Add Custom Fonts in Next.JS 15 (Step-by-Step Guide) ??</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPS9xba1e67WnqI7drAAaQ.png" /></figure><p>I hadn’t originally planned to write this blog, but I felt compelled to share my experience after facing unexpected challenges while adding custom fonts in a Next.js 15 + Tailwind CSS project. What surprised me most was the lack of clear, up-to-date resources or blog posts on this topic — especially for Next.js 15, which has introduced some changes in handling fonts.</p><p>After spending hours searching, experimenting, and piecing together scattered information, I finally got it working. And that’s exactly why I’m writing this — so you don’t have to waste your time going down the same rabbit holes.</p><p>This blog is for those who just want a simple, working solution — without the hassle.</p><ol><li>You have to download the font from anywhere i am downloading it from fonts.google.com</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NWXLszYdFC22uyBGNZrg1w.png" /></figure><p>2. After downloading the font you will get a zip file you have to extract it and then you will see a file with extension of .ttf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3r6F2gku4Jbssygfpx3pbw.png" /></figure><p>3. Now create a folder inside you src/app folder in nextjs project name it fonts now move that .ttf file inside fonts folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*ElB0nkMf6gx2jcCtSDs9ig.png" /></figure><p>4. After added .ttf file inside the fonts folder now you have to open the root layout.tsx file to add that local font in you project.</p><p>a.) First import local font from next/font/local add this line in top of the file</p><pre>import localFont from &#39;next/font/local&#39;</pre><p>b.) You should add this lines of code after all the imports</p><pre>const cursive = localFont({<br>  src: &#39;/fonts/StyleScript-Regular.ttf&#39;,<br>  variable: &#39;--font-cursive&#39;,<br>})</pre><p>c.) Now, pass the variable of the font in the body tag like this</p><pre> &lt;body className={`${cursive.variable}`}&gt;<br>  {children} <br> &lt;/body&gt;</pre><p>5. If there is no tailwind.config.js file we have to create one after creating that file you should paste this code</p><pre>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>module.exports = {<br>  content: [<br>    &#39;./src/app/**/*.{js,ts,jsx,tsx}&#39;,<br>  ],<br>  theme: {<br>    extend: {<br>      fontFamily: {<br>        cursive: &#39;var(--font-cursive)&#39;<br>      },<br>    },<br>  },<br>  plugins: [],<br>}</pre><p>inside theme.extend.fontFamily you have to add you font like this example one.</p><p>6. Now we have to link our tailwind.config.js file with our project. To link the file you have to add this line in you global.css file</p><pre>@config &#39;../../tailwind.config.js&#39;;</pre><p>7. After adding the this line you should delete .next folder and restart your server. Sometimes you may have to restart your vs code also (IDE). To get intellisense of the font.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1rBMpt9J5qHc64TM8eEXbA.png" /></figure><p>😄 Now you can see the result’s</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8_ZqjCskRLYTq8TYGeiTlw.png" /></figure><h3>🎉 Final Words</h3><p>And that’s it! You’ve now successfully integrated a custom font into your Next.js 15 + Tailwind CSS project using the latest best practices. This setup ensures your font is optimized, scalable, and easily manageable via Tailwind’s utility classes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0934ce1858d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Tailwind CSS to an Expo React Native Project ?]]></title>
            <link>https://medium.com/@sharmanachatra/how-to-add-tailwind-css-to-an-expo-react-native-project-4404c0e5c3bb?source=rss-a49034d9fb46------2</link>
            <guid isPermaLink="false">https://medium.com/p/4404c0e5c3bb</guid>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[expo-go]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Nachatra Sharma]]></dc:creator>
            <pubDate>Sun, 09 Mar 2025 12:46:38 GMT</pubDate>
            <atom:updated>2025-03-09T12:46:38.809Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Add Tailwind CSS to an Expo React Native Project ?</h3><p>Are you struggling to add <strong>Tailwind CSS</strong> to your React Native project? If yes, then this blog is for you! I faced this issue and spent around 2 hours figuring out <em>how to make it</em> <em>work</em>.</p><p>Assuming you’ve already created a React Native project using Expo on your local machine, let’s dive in and get started.</p><p><strong>Steps to Add Tailwind CSS to Your Project:</strong></p><ol><li>Install Required Packages</li></ol><pre>npm install nativewind tailwindcss@^3.4.17 react-native-reanimated@3.16.2 react-native-safe-area-context</pre><p>2. Initialize Tailwind CSS</p><p>Run this command to create the tailwind.config.js file in your project:</p><pre>npx tailwindcss init</pre><p>4. Update the Tailwind Configuration</p><p>Open the tailwind.config.js file and update the content field. You can add your own folder structure to let Tailwind know where to find the components you want to style:</p><pre>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>module.exports = {<br>  // NOTE: Update this to include the paths to all of your component files.<br>  content: [&quot;./app/**/*.{js,jsx,ts,tsx}&quot;],<br>  presets: [require(&quot;nativewind/preset&quot;)],<br>  theme: {<br>    extend: {},<br>  },<br>  plugins: [],<br>}</pre><p>5. Create a Global CSS File</p><p>Create a global.css file at the root of your project and add the following Tailwind directives:</p><pre>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;</pre><p>6. Update Babel Configuration</p><p>If you don’t already have a babel.config.js file, create one in the root of your project and add the following configuration:</p><pre>module.exports = function (api) {<br>  api.cache(true);<br>  return {<br>    presets: [<br>      [&quot;babel-preset-expo&quot;, { jsxImportSource: &quot;nativewind&quot; }],<br>      &quot;nativewind/babel&quot;,<br>    ],<br>  };<br>};</pre><p>7. Update Metro Configuration</p><p>Create a metro.config.js file in the root of your project if it&#39;s not already there, and add this code to integrate NativeWind:</p><pre>const { getDefaultConfig } = require(&quot;expo/metro-config&quot;);<br>const { withNativeWind } = require(&#39;nativewind/metro&#39;);<br><br>const config = getDefaultConfig(__dirname)<br><br>module.exports = withNativeWind(config, { input: &#39;./global.css&#39; })</pre><p>8. Import the Global CSS File</p><p>Finally, import the global.css file in your project to apply Tailwind styles globally:</p><pre> import &quot;./global.css&quot;</pre><p>Now you can start using Tailwind CSS in your Expo React Native project. You can style your components just like you would with regular Tailwind CSS classes.</p><p>Thank you, for reading! If you found this blog helpful, feel free to follow me so that you get notified when I share more tips and guides. Enjoy building your React Native project with Tailwind CSS!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4404c0e5c3bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>