<?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>Forem: Sushil Bishnoi</title>
    <description>The latest articles on Forem by Sushil Bishnoi (@bishnoi_sushill).</description>
    <link>https://forem.com/bishnoi_sushill</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%2F1070966%2F71f05046-44bb-40dd-adfa-c19926aa6ed9.jpg</url>
      <title>Forem: Sushil Bishnoi</title>
      <link>https://forem.com/bishnoi_sushill</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/bishnoi_sushill"/>
    <language>en</language>
    <item>
      <title>React Router DOM 6.0:</title>
      <dc:creator>Sushil Bishnoi</dc:creator>
      <pubDate>Mon, 05 Feb 2024 08:52:38 +0000</pubDate>
      <link>https://forem.com/bishnoi_sushill/react-router-dom-60-7ck</link>
      <guid>https://forem.com/bishnoi_sushill/react-router-dom-60-7ck</guid>
      <description>&lt;h2&gt;
  
  
  Npm install react-router-dom@latest
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Dive into the latest React Router DOM 6.0
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpuwf72rse0g7b9cwjszj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpuwf72rse0g7b9cwjszj.png" alt="Image description" width="800" height="437"&gt;&lt;/a&gt; inside the browser router ...&lt;/p&gt;

&lt;h2&gt;
  
  
  NavLink in the Navbar component. 🚦💡
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftnprz4fgyv6n89douqi7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftnprz4fgyv6n89douqi7.png" alt="Image description" width="800" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>react</category>
      <category>beginners</category>
    </item>
    <item>
      <title>One of the strengths of Next.js is its convention-based routing system</title>
      <dc:creator>Sushil Bishnoi</dc:creator>
      <pubDate>Wed, 31 Jan 2024 09:09:53 +0000</pubDate>
      <link>https://forem.com/bishnoi_sushill/one-of-the-strengths-of-nextjs-is-its-convention-based-routing-system-54f6</link>
      <guid>https://forem.com/bishnoi_sushill/one-of-the-strengths-of-nextjs-is-its-convention-based-routing-system-54f6</guid>
      <description>&lt;h2&gt;
  
  
  How does the folder structure look like!!
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0up5kc23v4qpo8uxp5bw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0up5kc23v4qpo8uxp5bw.png" alt="Image description" width="304" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Link tag in next js
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkrz5jt66ci0heh2kphva.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkrz5jt66ci0heh2kphva.png" alt="Image description" width="800" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Import the navigation inside the page component
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1irpzbmcikbik1h4il0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1irpzbmcikbik1h4il0.png" alt="Image description" width="709" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;npm run dev    (ready to go)&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>coding</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Javascript: A roadmap to learn Javascript🔥🚀</title>
      <dc:creator>Sushil Bishnoi</dc:creator>
      <pubDate>Fri, 14 Jul 2023 10:50:47 +0000</pubDate>
      <link>https://forem.com/bishnoi_sushill/javascript-a-roadmap-to-learn-javascript-1ddn</link>
      <guid>https://forem.com/bishnoi_sushill/javascript-a-roadmap-to-learn-javascript-1ddn</guid>
      <description>&lt;p&gt;Unlocking the Path to JavaScript Mastery: A Self-Taught Programmer's Guide to Starting Strong and Avoiding Common Pitfalls&lt;/p&gt;

&lt;p&gt;To give a little context about javascript:&lt;/p&gt;

&lt;p&gt;Primarily javascript is for the web. So, When you go to any website or web application there you will see all the content that will get populated using HTML (layout) &amp;amp; CSS (Design).&lt;/p&gt;

&lt;p&gt;Whereas javascript plays a role when you try to interact with that application. Let's say you want to fill the form, upload/download a file, enter details, etc. everything is the interaction that you do with that application handled by javascript (behavior).&lt;/p&gt;

&lt;p&gt;Hope that clarifies what can javascript actually does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mastering JavaScript Fundamentals: A Comprehensive Guide to Syntax:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Variables&lt;/li&gt;
&lt;li&gt;Data Types&lt;/li&gt;
&lt;li&gt;Operators&lt;/li&gt;
&lt;li&gt;Conditional Statements - if, if-else, switch.. etc&lt;/li&gt;
&lt;li&gt;Comments&lt;/li&gt;
&lt;li&gt;Loops - while, for, etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Once is Enough: Mastering Javascript fundamentals for lasting knowledge  and understanding.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unveiling the Language's Building Blocks: A Comprehensive Exploration of&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strings&lt;/li&gt;
&lt;li&gt;Arrays&lt;/li&gt;
&lt;li&gt;Dates&lt;/li&gt;
&lt;li&gt;Math&lt;/li&gt;
&lt;li&gt;Regular expression&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Practicing Several examples several times make you an expert in using them.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exploring Essentials Javascript Features:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Functions&lt;/li&gt;
&lt;li&gt;Objects &lt;/li&gt;
&lt;li&gt;Classes&lt;/li&gt;
&lt;li&gt;DOM Manipulation&lt;/li&gt;
&lt;li&gt;JSON&lt;/li&gt;
&lt;li&gt;Async JavaScript&lt;/li&gt;
&lt;li&gt;Modules&lt;/li&gt;
&lt;li&gt;other javascript-specific handling like using this, coercion, errors, hoisting, style guide, etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Getting the concept of these items is very much important. Learning and practicing with simple examples for 1-2 times enough. You would easily grasp what each one does as per its context.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inner Workings and Mechanics of the Language.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Browser APIs&lt;/li&gt;
&lt;li&gt;Web APIs&lt;/li&gt;
&lt;li&gt;javascript execution context&lt;/li&gt;
&lt;li&gt;Memory handling&lt;/li&gt;
&lt;li&gt;Interpreter/compiler&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Go through them once and keep in mind what each does&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep practicing the below items&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Array methods&lt;/li&gt;
&lt;li&gt;String methods&lt;/li&gt;
&lt;li&gt;Date methods&lt;/li&gt;
&lt;li&gt;Regex methods&lt;/li&gt;
&lt;li&gt;Math methods&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;There are couple more things we usually have to follow:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Trying any programming paradigms like functional programming&lt;/li&gt;
&lt;li&gt;Going through different javascript blogs&lt;/li&gt;
&lt;li&gt;Going through interview questions or programming examples&lt;/li&gt;
&lt;li&gt;Doing simple projects&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This path makes you a better javascript developer.&lt;/p&gt;

&lt;p&gt;Do follow only one website or tutorial or youtube channel where all these contents are covered.&lt;br&gt;
Going through each of them in order will be very much helpful.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thankyou&lt;/strong&gt;&lt;br&gt;
All the very best🔥&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>7 libraries you should know as a React developer🔥🚀</title>
      <dc:creator>Sushil Bishnoi</dc:creator>
      <pubDate>Thu, 06 Jul 2023 02:57:05 +0000</pubDate>
      <link>https://forem.com/bishnoi_sushill/7-libraries-you-should-know-as-a-react-developer-434k</link>
      <guid>https://forem.com/bishnoi_sushill/7-libraries-you-should-know-as-a-react-developer-434k</guid>
      <description>&lt;p&gt;As you progress in your quest to become a skilled React developer, you will encounter countless libraries, which may leave you feeling disoriented and bewildered.&lt;br&gt;
However, here's a curated list of seven essential libraries that you can't go wrong with when expanding your React skillset:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.React joyride&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxtc9ang1vb0gwov3k9q.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxtc9ang1vb0gwov3k9q.jpg" alt="React joyride library img" width="598" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is an incredible tool to showcase new features to existing users &amp;amp; onboarding new users to your app.&lt;br&gt;
Website: &lt;a href="https://react-joyride.com"&gt;https://react-joyride.com&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/react-joyride"&gt;https://www.npmjs.com/package/react-joyride&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.React PDF Renderer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyz1srv3623u7rrbckwwf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyz1srv3623u7rrbckwwf.jpg" alt="pdf renderer image" width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;React PDF Renderer is a library that helps you create PDF files using React components, thus making the tedious process of creating PDFs a walk in the park.&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://react-pdf.org/"&gt;https://react-pdf.org/&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/@react-pdf/renderer"&gt;https://www.npmjs.com/package/@react-pdf/renderer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.React Beautiful DnD&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkaq3aamh59vi7uasidsy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkaq3aamh59vi7uasidsy.gif" alt="amazing dnd library" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;React Beautiful DnD is a library that helps you create drag and drop interfaces in your React apps.&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://react-beautiful-dnd.netlify.app"&gt;https://react-beautiful-dnd.netlify.app&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/react-beautiful-dnd"&gt;https://www.npmjs.com/package/react-beautiful-dnd&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Material UI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn0kmrjowzx4bgbabdn7w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn0kmrjowzx4bgbabdn7w.png" alt="material ui" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a library that needs no introduction. Material UI is the largest component library for React. It is used by Spotify, Amazon, Netflix and countless other companies.&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://material-ui.com/"&gt;https://material-ui.com/&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/@mui/material"&gt;https://www.npmjs.com/package/@mui/material&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.Swiper.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fik43ilxsv1o80b2bc1sy.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fik43ilxsv1o80b2bc1sy.jpg" alt="swiper js library" width="297" height="170"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Swiper.js, as the library name suggests, is a library that helps you create swipeable interfaces in your React apps.&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://swiperjs.com/react"&gt;https://swiperjs.com/react&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/swiper"&gt;https://www.npmjs.com/package/swiper&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6.React Query&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmkbbkj6kgfeoythz5dpa.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmkbbkj6kgfeoythz5dpa.jpg" alt="Query react" width="513" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;React Query is a data management library which provides immense control of fetching, caching data, and error handling using simple hooks.&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://tanstack.com/query/latest/"&gt;https://tanstack.com/query/latest/&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/@tanstack/react-query"&gt;https://www.npmjs.com/package/@tanstack/react-query&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.React Spring&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzasl6teimrtpbqfpki7j.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzasl6teimrtpbqfpki7j.gif" alt="react spring" width="880" height="684"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;React Spring is a library that helps you create eye-candy animations in your React apps, which ensures high user engagement!&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://react-spring.io/"&gt;https://react-spring.io/&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/react-spring"&gt;https://www.npmjs.com/package/react-spring&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>frontend</category>
      <category>javascript</category>
    </item>
    <item>
      <title>To import images in a React app, you can follow these steps:</title>
      <dc:creator>Sushil Bishnoi</dc:creator>
      <pubDate>Tue, 27 Jun 2023 06:22:04 +0000</pubDate>
      <link>https://forem.com/bishnoi_sushill/to-import-images-in-a-react-app-you-can-follow-these-steps-lgm</link>
      <guid>https://forem.com/bishnoi_sushill/to-import-images-in-a-react-app-you-can-follow-these-steps-lgm</guid>
      <description>&lt;p&gt;Create a folder named images (or any other name of your choice) in the src directory of your React app. Place the images you want to import into this folder.&lt;/p&gt;

&lt;p&gt;In your component file where you want to use the image, import the image using import statement. You can import the image as a variable or directly use it as a source for an &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react';
import myImage from './images/myImage.jpg'; // Assuming your image file is named myImage.jpg

const MyComponent = () =&amp;gt; {
  return (
    &amp;lt;div&amp;gt;
      &amp;lt;img src={myImage} alt="My Image" /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
};

export default MyComponent;

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

&lt;/div&gt;



&lt;p&gt;Alternatively, you can directly use the image as a source for an &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag without importing it as a variable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react';

const MyComponent = () =&amp;gt; {
  return (
    &amp;lt;div&amp;gt;
      &amp;lt;img src={require('./images/myImage.jpg')} alt="My Image" /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
};

export default MyComponent;

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

&lt;/div&gt;



&lt;p&gt;export default MyComponent;&lt;br&gt;
Note that when using require, the path to the image file is specified as a string.&lt;/p&gt;

&lt;p&gt;Save your changes, and the image should now be imported and displayed in your React app.&lt;/p&gt;

&lt;p&gt;Make sure the path to the image file is correct and relative to the component file where you are importing it. Also, ensure that the image file format is compatible with the &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag (e.g., JPEG, PNG, GIF, etc.).&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>tutorial</category>
      <category>frontend</category>
    </item>
    <item>
      <title>How to serve html file using nodejs</title>
      <dc:creator>Sushil Bishnoi</dc:creator>
      <pubDate>Sat, 29 Apr 2023 11:20:03 +0000</pubDate>
      <link>https://forem.com/bishnoi_sushill/serving-html-using-nodejs-450p</link>
      <guid>https://forem.com/bishnoi_sushill/serving-html-using-nodejs-450p</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//The folder structure looks like this 
&amp;gt;public
   &amp;gt;css
      .style.css
.index.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code snippet demonstrates how to serve static files using Node.js&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const express = require("express")
const app = express()
const path  = require("path")
const port = process.env.PORT || 4000
require('./db/database.js')

const static_path = path.join(__dirname, '../public')

// using middlewares 
app.use(express.static(static_path))
// routes 
app.get("/", (req, res) =&amp;gt; {
  res.send("&amp;lt;h1&amp;gt;Hello world&amp;lt;/h1&amp;gt;")
});
// server port 
app.listen(port, () =&amp;gt; {
  console.log("Server is running")
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Buy me a coffee: &lt;a href="https://www.buymeacoffee.com/sushilk132y"&gt;https://www.buymeacoffee.com/sushilk132y&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>node</category>
      <category>coding</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
