<?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: Manish Yadav</title>
    <description>The latest articles on DEV Community by Manish Yadav (@manishydv98).</description>
    <link>https://dev.to/manishydv98</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%2F2910664%2F7e2b9617-0ee3-4357-9b4a-12b4617d3052.jpg</url>
      <title>DEV Community: Manish Yadav</title>
      <link>https://dev.to/manishydv98</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manishydv98"/>
    <language>en</language>
    <item>
      <title>Building My first React Web Application – A Developer's Journey 🚀</title>
      <dc:creator>Manish Yadav</dc:creator>
      <pubDate>Mon, 10 Mar 2025 03:02:42 +0000</pubDate>
      <link>https://dev.to/manishydv98/building-my-first-react-web-application-a-developers-journey-125l</link>
      <guid>https://dev.to/manishydv98/building-my-first-react-web-application-a-developers-journey-125l</guid>
      <description>&lt;h2&gt;
  
  
  Step 1: Choosing the Right Tech Stack
&lt;/h2&gt;

&lt;p&gt;Before starting, I decided to use React for its component-based architecture and efficient rendering. Along with React, I used:&lt;br&gt;
✅ Vite for a fast development setup&lt;br&gt;
✅ Tailwind CSS for styling&lt;br&gt;
✅  other libraries/frameworks like Redux,&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 2: Setting Up the Project
&lt;/h2&gt;

&lt;p&gt;I initialized my project using Vite:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sh

npm create vite@latest paste-app
cd paste-app
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gave me a blazing-fast dev server with hot reloading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Creating the Core Components
&lt;/h2&gt;

&lt;p&gt;I structured my app into reusable components like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Navbar.jsx – Navigation bar&lt;/li&gt;
&lt;li&gt;Home.jsx – Main page content&lt;/li&gt;
&lt;li&gt;Past.x.jsx – Bottom section with links&lt;/li&gt;
&lt;li&gt;Viewpaste.jsx – for view paste notes and documents&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Managing State with Hooks
&lt;/h2&gt;

&lt;p&gt;To handle app state, I used useState and useEffect:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jsx
const [data, setData] = useState([]);

useEffect(() =&amp;gt; {
  fetchData();
}, []);

const fetchData = async () =&amp;gt; {
  const response = await fetch("https://api.example.com/data");
  const result = await response.json();
  setData(result);
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This helped me fetch and display dynamic content.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Adding Routing with React Router
&lt;/h2&gt;

&lt;p&gt;I set up navigation using react-router-dom:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sh

npm install react-router-dom
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, I created routes in App.jsx:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jsx

import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import Home from "./Home";
import Navbar from "./Navbar";

function App() {
  return (
    &amp;lt;Router&amp;gt;
      &amp;lt;Routes&amp;gt;
        &amp;lt;Route path="/" element={&amp;lt;Home /&amp;gt;} /&amp;gt;
        &amp;lt;Route path="/Navbar" element={&amp;lt;Navbar /&amp;gt;} /&amp;gt;
      &amp;lt;/Routes&amp;gt;
    &amp;lt;/Router&amp;gt;
  );
}

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This made my app a multi-page experience without reloading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Styling the UI
&lt;/h2&gt;

&lt;p&gt;I used Tailwind CSS for quick styling:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;terminal&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
npm install tailwindcss @tailwindcss/vite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;vite.config.ts&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
  plugins: [
    tailwindcss(),
  ],
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Import tailwind in CSS file
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@import "tailwindcss";

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Then,&lt;/strong&gt;&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;Then, added styles like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jsx

&amp;lt;div className='flex flex-row gap-2 place-content-center  '&amp;gt;
        &amp;lt;input type="text"
          className='p-2 pl-2  rounded-2xl  mt-2 border w-[30%]'
          placeholder='enter title here'
          value={title}
          onChange={(e) =&amp;gt; settitle(e.target.value)} /&amp;gt;
        &amp;lt;button
          onClick={createpaste}
          className='p-2  rounded-2xl  mt-2 ' &amp;gt;
          {
            pasteId ? "update my paste" : "create my paste"
          }
        &amp;lt;/button &amp;gt;
      &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This kept my styling clean and maintainable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Deploying the App
&lt;/h2&gt;

&lt;p&gt;Once I was happy with my app, I deployed it on Vercel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sh

npm run build
vercel deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, my app is live and accessible online! 🎉&lt;/p&gt;

&lt;p&gt;Final Thoughts &amp;amp; Lessons Learned&lt;br&gt;
Building this React app taught me:&lt;br&gt;
✅ How to structure a scalable project&lt;br&gt;
✅ The power of reusable components&lt;br&gt;
✅ How to manage state effectively&lt;br&gt;
✅ The importance of performance optimization&lt;/p&gt;

&lt;p&gt;🔹 Next Steps: Adding  better tailwindcss ,authentication, dark mode, and improving responsiveness!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>programming</category>
      <category>devchallenge</category>
    </item>
    <item>
      <title>npx tailwindcss init -p error solved: 'npm ERR! Could Not Determine Executable to Run'</title>
      <dc:creator>Manish Yadav</dc:creator>
      <pubDate>Wed, 05 Mar 2025 16:04:54 +0000</pubDate>
      <link>https://dev.to/manishydv98/tailwindcss-error-solved-npm-err-could-not-determine-executable-to-run-5ll</link>
      <guid>https://dev.to/manishydv98/tailwindcss-error-solved-npm-err-could-not-determine-executable-to-run-5ll</guid>
      <description>&lt;p&gt;When I encountered an error while initializing a Tailwind CSS configuration for my project, &lt;/p&gt;

&lt;p&gt;command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install tailwindcss @tailwindcss/postcss postcss
npx tailwindcss init -p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;error:&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%2Foksl489oqatdpkec6ysi.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%2Foksl489oqatdpkec6ysi.png" alt="npm tailwindcss error IMG" width="800" height="114"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in: C:\Users\raoma\AppData\Local\npm-cache\_logs\2025-03-05T15_53_22_652Z-debug-0.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;solution: what I've tried&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The init command is no longer available in Tailwind CSS v4. For v3, make sure to use the correct version qualifier during installation.&lt;/p&gt;

&lt;p&gt;If you want to use  Tailwindcss v4 use this:&lt;br&gt;
&lt;a href="https://tailwindcss.com/blog/tailwindcss-v4#css-first-configuration" rel="noopener noreferrer"&gt;https://tailwindcss.com/blog/tailwindcss-v4#css-first-configuration&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tailwindcss</category>
      <category>npm</category>
      <category>help</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
