<?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: Mannat Trivedi</title>
    <description>The latest articles on DEV Community by Mannat Trivedi (@mannat_trivedi).</description>
    <link>https://dev.to/mannat_trivedi</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2651487%2F91a8a6ff-d67e-45ef-b434-a0a0ae59c481.jpeg</url>
      <title>DEV Community: Mannat Trivedi</title>
      <link>https://dev.to/mannat_trivedi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mannat_trivedi"/>
    <language>en</language>
    <item>
      <title>Integrating React and Vite: How It Boosted My Development Speed</title>
      <dc:creator>Mannat Trivedi</dc:creator>
      <pubDate>Fri, 03 Jan 2025 16:05:08 +0000</pubDate>
      <link>https://dev.to/mannat_trivedi/integrating-react-and-vite-how-it-boosted-my-development-speed-2ge3</link>
      <guid>https://dev.to/mannat_trivedi/integrating-react-and-vite-how-it-boosted-my-development-speed-2ge3</guid>
      <description>&lt;p&gt;As a web developer, I am always looking for tools that can boost my productivity and enhance my workflow. Recently, I started using Vite with React to build my portfolio, and I’m blown away by how much it has improved my development speed. If you're still using Webpack or other bundlers, here's why you should consider switching to Vite and how it can make a difference in your project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Vite?&lt;/strong&gt;&lt;br&gt;
Vite is a modern build tool that leverages the power of ES modules to provide fast, optimized development experiences. It's extremely fast and efficient in terms of bundling and file transformation. Unlike traditional bundlers like Webpack, Vite provides lightning-fast hot module replacement (HMR), minimizing delays and making development smoother.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk27hvcoe7dued43qlr17.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk27hvcoe7dued43qlr17.png" alt="default-app" width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why I Switched to Vite?&lt;/strong&gt;&lt;br&gt;
Before I started using Vite, I was primarily using Webpack with React, and though it worked fine, the speed wasn’t great, especially during hot-reloading or making changes that required a full rebuild. But Vite promises quick startup times and updates without rebuilding the entire project every time. The best part? No configuration needed! Vite works out of the box with React. Just install it, start developing, and let it handle everything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Building My Portfolio with React &amp;amp; Vite&lt;/strong&gt;&lt;br&gt;
I decided to build my personal portfolio using React to showcase my projects, skills, and blog posts. It’s a responsive, modern website that represents me as a developer. The stack for my portfolio is very simple:&lt;/p&gt;

&lt;p&gt;React for the front-end to build interactive UI components&lt;br&gt;
Vite for blazing-fast bundling and development experience&lt;br&gt;
I’ll explain how using Vite significantly improved my workflow in this project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Getting Started with Vite &amp;amp; React&lt;/strong&gt;&lt;br&gt;
To get started, I simply created a new project using the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create vite@latest my-portfolio --template react
cd my-portfolio
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you can see, Vite made it extremely easy to set up a new React project, and the development server started instantly with zero configuration. From here, I was able to focus on building features, not spending time dealing with bundler setup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hot Module Replacement (HMR)&lt;/strong&gt;&lt;br&gt;
One of the best features of Vite is Hot Module Replacement (HMR). When I was making real-time changes to my portfolio, the components updated without refreshing the entire page, preserving the app’s state.&lt;/p&gt;

&lt;p&gt;For example, when I edited a section of my portfolio (like changing a color or adding a new project), the changes immediately reflected on the page without requiring a full reload. This not only saved me time but also made my workflow much smoother, as there was zero downtime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fast Build and Instant Feedback&lt;/strong&gt;&lt;br&gt;
React + Vite allowed me to get instant feedback while developing. With Webpack, the initial build or bundling could take several seconds, and when you’re tweaking UI elements, every millisecond counts. Vite gave me a response in no time – this meant I was working faster and staying in the creative flow.&lt;/p&gt;

&lt;p&gt;I noticed the reduction in build time especially when using libraries or CSS frameworks like Tailwind CSS. Unlike the typical bundling setup, Vite makes use of native ES modules, making it extremely fast in compiling changes without the heavy bundling process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Faster Production Builds&lt;/strong&gt;&lt;br&gt;
Another benefit I experienced was in the production builds. When I needed to deploy my portfolio, Vite provided optimized builds that were not only smaller but also faster to load. Whether it was minification or lazy loading, Vite handled all optimizations with ease. I simply ran:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm run build&lt;/code&gt;&lt;br&gt;
And then deployed the static files – simple as that!&lt;/p&gt;

&lt;p&gt;Example: My Portfolio&lt;br&gt;
You can see the fruits of my hard work on my personal portfolio: My Portfolio. Built with React and Vite, it's responsive and dynamic, featuring multiple sections, smooth scrolling, and mobile-friendly UI. It provides a good overview of the projects I’ve worked on and allows visitors to interact with various components seamlessly.&lt;/p&gt;

&lt;p&gt;How to Get Started with Vite &amp;amp; React&lt;br&gt;
If you’re new to React or Vite and want to get started, here’s how:&lt;/p&gt;

&lt;p&gt;Create your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create vite@latest my-react-app --template react
cd my-react-app
npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start the development server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Link a CDN: Vite will handle your CSS and JavaScript dependencies for you, but if you’re using external libraries (like fonts), you can include a CDN link in the head of your index.html.&lt;/p&gt;

&lt;p&gt;Begin writing your app: Vite will automatically reload and give you instant feedback with HMR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
Using Vite in combination with React has definitely improved my development speed. The quick builds, no configuration, and fast hot-reload feature allow me to focus on writing meaningful code and designing rather than troubleshooting build tools.&lt;/p&gt;

&lt;p&gt;I highly recommend trying out Vite if you’re looking to make your React projects faster, smoother, and more enjoyable. Trust me, once you start, you’ll never go back!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>vite</category>
      <category>portfolio</category>
    </item>
    <item>
      <title>Why I Switched to Tailwind CSS and Never Going Back!</title>
      <dc:creator>Mannat Trivedi</dc:creator>
      <pubDate>Fri, 03 Jan 2025 14:30:30 +0000</pubDate>
      <link>https://dev.to/mannat_trivedi/why-i-switched-to-tailwind-css-and-never-going-back-3fi0</link>
      <guid>https://dev.to/mannat_trivedi/why-i-switched-to-tailwind-css-and-never-going-back-3fi0</guid>
      <description>&lt;p&gt;Learning web development has been an incredible journey for me. From HTML basics to structuring intricate layouts with CSS, it's been a rewarding experience. But the story took an exciting turn when I stumbled upon Tailwind CSS—a utility-first CSS framework that changed the game for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Discovering Tailwind CSS: A Game Changer
&lt;/h2&gt;

&lt;p&gt;When I first encountered Tailwind CSS, I wasn’t sure if it would fit my workflow. It sounded different—utility classes instead of predefined components? However, as I dug deeper, it clicked! Instead of hopping between CSS files and HTML, Tailwind lets you directly style elements using concise utility classes, keeping everything inline and simple. It’s like writing clean, declarative style directly into the markup.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6s4pgfp36zqa54dky9s6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6s4pgfp36zqa54dky9s6.png" alt="tailwind-css" width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are a few reasons I fell in love with Tailwind CSS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Efficiency: No more searching for or writing custom CSS from scratch. Tailwind’s utility classes are ready to go!&lt;/li&gt;
&lt;li&gt;Customization: Tailwind lets you fully customize your design system without breaking a sweat.&lt;/li&gt;
&lt;li&gt;Responsiveness: Building a mobile-first design? Tailwind simplifies responsive layouts with its intuitive breakpoints.&lt;/li&gt;
&lt;li&gt;Integrated Workflow: Fonts, spacing, colors—all predefined. I said goodbye to downloading separate font files!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;My First Tailwind Project: A Twitter (X) Clone&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpv73gxziokfkcw3i7skx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpv73gxziokfkcw3i7skx.png" alt="x-clone" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To see if the hype was real, I made my first project with Tailwind CSS: a responsive Twitter/X clone. I couldn’t believe how seamlessly the design came together. Tailwind made everything feel effortless, from crafting the layout to ensuring responsiveness on various devices.&lt;br&gt;
🚀 Check it out here: &lt;a href="https://xsite.freewebhostmost.com/" rel="noopener noreferrer"&gt;Twitter Clone&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using Tailwind with React and Vite&lt;/strong&gt;&lt;br&gt;
Integrating Tailwind into React projects was another pleasant surprise! Pairing Tailwind with frameworks like React (and using Vite for blazing-fast builds) made styling components feel like second nature. Its ecosystem and documentation made it simple to get up and running, even as a beginner.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to Try Tailwind?&lt;/strong&gt;&lt;br&gt;
Getting started is easy:&lt;/p&gt;

&lt;p&gt;Via CDN: Perfect for quickly experimenting. Just add this to your &lt;code&gt;&amp;lt;head&amp;gt;:&lt;/code&gt;&lt;br&gt;
html&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With a Build Tool: Follow the official Tailwind CSS docs for integrating it into your build pipeline.&lt;/p&gt;

&lt;p&gt;If you haven’t tried Tailwind CSS yet, you’re missing out! For me, it's been transformative in how I approach and implement designs. Whether you’re starting a small project or diving into full-stack development, give Tailwind CSS a shot—it might just become your favorite tool! 🚀&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tailwindcss</category>
      <category>css</category>
      <category>clone</category>
    </item>
  </channel>
</rss>
