<?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: hrb11182</title>
    <description>The latest articles on DEV Community by hrb11182 (@hrb11182).</description>
    <link>https://dev.to/hrb11182</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%2F824199%2F26c15e13-5679-4784-90c2-4439565cf8bb.jpeg</url>
      <title>DEV Community: hrb11182</title>
      <link>https://dev.to/hrb11182</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hrb11182"/>
    <language>en</language>
    <item>
      <title>React-Router-6</title>
      <dc:creator>hrb11182</dc:creator>
      <pubDate>Tue, 02 Aug 2022 15:42:00 +0000</pubDate>
      <link>https://dev.to/hrb11182/react-router-6-l50</link>
      <guid>https://dev.to/hrb11182/react-router-6-l50</guid>
      <description>&lt;p&gt;Before starting to code we need to understand the file structure we are going to use in this tutorial.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8HzmAJWV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t61wtmskckn5i24btun0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8HzmAJWV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t61wtmskckn5i24btun0.png" alt="Image" width="242" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Public Folder&lt;/strong&gt; has the default files which comes with &lt;strong&gt;create-react-app&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q0VZZqqh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcxbkckj3y5ltp7982e0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q0VZZqqh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcxbkckj3y5ltp7982e0.png" alt="Image" width="246" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;src Folder&lt;/strong&gt; it has two folders &lt;strong&gt;final&lt;/strong&gt; which contains completed code and rest of the files and &lt;strong&gt;pages&lt;/strong&gt; folder will be used in this tutorial.&lt;/p&gt;

&lt;h2&gt;
  
  
  Css code to follow along.
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*,
::after,
::before {
  box-sizing: border-box;
}
/* fonts */
/* @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&amp;amp;family=Montserrat&amp;amp;display=swap"); */

html {
  font-size: 100%;
} /*16px*/

:root {
  /* colors */
  --primary-100: #e2e0ff;
  --primary-200: #c1beff;
  --primary-300: #a29dff;
  --primary-400: #837dff;
  --primary-500: #645cff;
  --primary-600: #504acc;
  --primary-700: #3c3799;
  --primary-800: #282566;
  --primary-900: #141233;

  /* grey */
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  /* rest of the colors */
  --black: #222;
  --white: #fff;
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  /* fonts  */

  --small-text: 0.875rem;
  --extra-small-text: 0.7em;
  /* rest of the vars */
  --backgroundColor: var(--grey-50);
  --textColor: var(--grey-900);
  --borderRadius: 0.25rem;
  --letterSpacing: 1px;
  --transition: 0.3s ease-in-out all;
  --max-width: 1120px;
  --fixed-width: 600px;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  background: var(--backgroundColor);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--textColor);
}

p {
  margin-bottom: 1.5rem;
  max-width: 40em;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  margin-bottom: 1.38rem;
  font-family: var(--headingFont);
  font-weight: 400;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: var(--letterSpacing);
}

h1 {
  margin-top: 0;
  font-size: 3.052rem;
}

h2 {
  font-size: 2.441rem;
}

h3 {
  font-size: 1.953rem;
}

h4 {
  font-size: 1.563rem;
}

h5 {
  font-size: 1.25rem;
}

small,
.text-small {
  font-size: var(--small-text);
}

a {
  text-decoration: none;
}
ul {
  list-style-type: none;
  padding: 0;
}

.img {
  width: 100%;
  display: block;
  object-fit: cover;
}
/* buttons */

.btn {
  cursor: pointer;
  color: var(--white);
  background: var(--primary-500);
  border: transparent;
  border-radius: var(--borderRadius);
  letter-spacing: var(--letterSpacing);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-1);
  transition: var(--transition);
  text-transform: capitalize;
  display: inline-block;
}
.btn:hover {
  background: var(--primary-700);
  box-shadow: var(--shadow-3);
}
.btn-hipster {
  color: var(--primary-500);
  background: var(--primary-200);
}
.btn-hipster:hover {
  color: var(--primary-200);
  background: var(--primary-700);
}
.btn-block {
  width: 100%;
}

/* alerts */
.alert {
  padding: 0.375rem 0.75rem;
  margin-bottom: 1rem;
  border-color: transparent;
  border-radius: var(--borderRadius);
}

.alert-danger {
  color: var(--red-dark);
  background: var(--red-light);
}
.alert-success {
  color: var(--green-dark);
  background: var(--green-light);
}
/* form */

.form {
  width: 90vw;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow-2);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
}
.form-label {
  display: block;
  font-size: var(--small-text);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  letter-spacing: var(--letterSpacing);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border-radius: var(--borderRadius);
  background: var(--backgroundColor);
  border: 1px solid var(--grey-200);
}

.form-row {
  margin-bottom: 1rem;
}

.form-textarea {
  height: 7rem;
}
::placeholder {
  font-family: inherit;
  color: var(--grey-400);
}
.form-alert {
  color: var(--red-dark);
  letter-spacing: var(--letterSpacing);
  text-transform: capitalize;
}
/* alert */

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
.form h5 {
  text-align: center;
}
.form .btn {
  margin-top: 0.5rem;
}
.loading {
  width: 6rem;
  height: 6rem;
  border: 5px solid var(--grey-400);
  border-radius: 50%;
  border-top-color: var(--primary-500);
  animation: spinner 0.6s linear infinite;
}
.loading {
  margin: 0 auto;
}
/* title */

.title {
  text-align: center;
}

.title-underline {
  background: var(--primary-500);
  width: 7rem;
  height: 0.25rem;
  margin: 0 auto;
  margin-top: -1rem;
}

.section {
  padding: 2rem 0;
  width: 90vw;
  max-width: var(--max-width);
  margin: 0 auto;
}

.navbar {
  width: 90vw;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.link {
  color: var(--grey-500);
}

.active {
  color: var(--primary-500);
}
.products article {
  margin-bottom: 1rem;
}

.products h5 {
  margin-bottom: 0;
}

.product img {
  width: 200px;
  height: 150px;
}

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

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Copy and paste this CSS code in Index.css to follow along&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now lets start it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Qws0ubGo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kpdponjydnwixk4up4si.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Qws0ubGo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kpdponjydnwixk4up4si.png" alt="Image" width="880" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's set our first route so open &lt;strong&gt;App.js&lt;/strong&gt; from &lt;strong&gt;src&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9wjupNjB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tohgg0vd5k3d1doc0iij.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9wjupNjB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tohgg0vd5k3d1doc0iij.png" alt="Image" width="729" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 1&lt;/strong&gt; imported the &lt;strong&gt;BrowserRouter( browser router which is going to connect to the actual browser), Routes(the routes component which is going to be a parent for all our routes), Route(we'll use it to set up a single page).&lt;/strong&gt; from &lt;strong&gt;react-router-dom&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 5 to 9&lt;/strong&gt; wrapped everything in &lt;strong&gt;BrowserRouter&lt;/strong&gt;.&lt;br&gt;
&lt;strong&gt;Line 7&lt;/strong&gt; we set single route &lt;strong&gt;path&lt;/strong&gt; specifies that what we are going to see in the search bar as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gSF4MSLH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9pmleewtry3ntq2gaywd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gSF4MSLH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9pmleewtry3ntq2gaywd.png" alt="Imag" width="542" height="69"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we set its value to be &lt;strong&gt;/&lt;/strong&gt; means &lt;strong&gt;Home&lt;/strong&gt; suppose we have &lt;strong&gt;&lt;a href="http://www.react-router-tutorial"&gt;www.react-router-tutorial&lt;/a&gt;&lt;/strong&gt; domain so when any one visit this &lt;strong&gt;url&lt;/strong&gt; what we are going to see is specified by this &lt;strong&gt;/&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;here we passed an attribute element which is a &lt;strong&gt;JSX&lt;/strong&gt; to show when anyone visit this &lt;strong&gt;route&lt;/strong&gt; in our case our domain is &lt;strong&gt;&lt;a href="http://localhost:3000/"&gt;http://localhost:3000/&lt;/a&gt;&lt;/strong&gt; so if we visit this we will be able to see &lt;strong&gt;Home&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Chqe0mLP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ssawvpcwvvd098cke6rh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Chqe0mLP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ssawvpcwvvd098cke6rh.png" alt="Image" width="880" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7jEeM4oy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jzqlrp3b2webb23828k5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7jEeM4oy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jzqlrp3b2webb23828k5.png" alt="Image" width="812" height="710"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; we appended &lt;strong&gt;testing&lt;/strong&gt; after &lt;strong&gt;/&lt;/strong&gt; but in &lt;strong&gt;Line 10&lt;/strong&gt; we directly wrote &lt;strong&gt;about&lt;/strong&gt; without using &lt;strong&gt;/&lt;/strong&gt; so don't worry both are same now if we visit browser you will get.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--04YCRUeq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w9b8owtzhqkkvatj0nkk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--04YCRUeq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w9b8owtzhqkkvatj0nkk.png" alt="Image" width="730" height="292"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hqiTPl7l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vt6desrtj7pssyzfnrtb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hqiTPl7l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vt6desrtj7pssyzfnrtb.png" alt="Image" width="745" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look at the &lt;strong&gt;url&lt;/strong&gt; after &lt;strong&gt;/&lt;/strong&gt; we changed the text we have been served with different content now we can take it to multiple levels as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xDyXgNzv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qcprv0scv9qllp2j3bn0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xDyXgNzv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qcprv0scv9qllp2j3bn0.png" alt="Image" width="808" height="917"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 17 to 24&lt;/strong&gt; set a multi-level route see &lt;strong&gt;Line 18&lt;/strong&gt; now let's move to browser and check.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OWXWdRON--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ei867gwrla6mu7bx4dl6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OWXWdRON--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ei867gwrla6mu7bx4dl6.png" alt="Image" width="665" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Up till now we were setting up the route and displaying the &lt;strong&gt;hardcoded content&lt;/strong&gt; in the form of &lt;strong&gt;element attribute&lt;/strong&gt;  passed in &lt;strong&gt;Route&lt;/strong&gt; now we will see dynamic way.&lt;/p&gt;

&lt;p&gt;In order to do that we will use the &lt;strong&gt;pages folder&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DMkadJjG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38pg3m55mtgwtjkpfo2k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DMkadJjG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38pg3m55mtgwtjkpfo2k.png" alt="Image" width="227" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We will use &lt;strong&gt;Home, About&lt;/strong&gt; and &lt;strong&gt;Products&lt;/strong&gt; and set up the route for them as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--08CS4S9V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oueoodsasvtzadz5nymy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--08CS4S9V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oueoodsasvtzadz5nymy.png" alt="Image" width="590" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;About.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Zbt_tg3o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7et0zi15xneni2bf9no6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Zbt_tg3o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7et0zi15xneni2bf9no6.png" alt="Image" width="592" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Home.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8eeBJbmf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3es85ya5rkbp68rp8p58.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8eeBJbmf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3es85ya5rkbp68rp8p58.png" alt="Image" width="588" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Products.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8ir8LTZt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/700xo6kypndh4el7x1yt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8ir8LTZt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/700xo6kypndh4el7x1yt.png" alt="Image" width="579" height="719"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3, 4 and 5&lt;/strong&gt; imported the components / pages from &lt;strong&gt;pages folder&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11, 12 and 13&lt;/strong&gt; we set up the same way we did earlier in this tutorial but this time instead of rendering hard coded &lt;strong&gt;JSX&lt;/strong&gt; we are displaying an entire component in &lt;strong&gt;element&lt;/strong&gt; attribute of the &lt;strong&gt;Route&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--I4JOsa9w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cnvx9fslyd84c2i3h41y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--I4JOsa9w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cnvx9fslyd84c2i3h41y.png" alt="Image description" width="854" height="299"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--k_ciRMR_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j670pg09258zxz9ld133.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--k_ciRMR_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j670pg09258zxz9ld133.png" alt="Image description" width="880" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4pgZMn9I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arpqhmkx000wfnk8abri.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4pgZMn9I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arpqhmkx000wfnk8abri.png" alt="Image" width="880" height="284"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In all three above figures look at the &lt;strong&gt;search bar&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Link to component from components-:
&lt;/h2&gt;

&lt;p&gt;Means up till now we were using search bar to navigate now we will try to provide the buttons to navigate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--j4CUZfWp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hvnakxagek8lnk1zq8p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j4CUZfWp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hvnakxagek8lnk1zq8p.png" alt="Image" width="696" height="972"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to create the functionality so that we can navigate between pages we can use two things first is the &lt;strong&gt;anchor tag &lt;a&gt;&lt;/a&gt;&lt;/strong&gt; and second &lt;strong&gt;Link tag &lt;/strong&gt; provided by &lt;strong&gt;react-router-dom&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 21 to 28&lt;/strong&gt; we created using &lt;strong&gt;anchor tag&lt;/strong&gt; means last two buttons if you visit browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 7 to 20&lt;/strong&gt; created 4 links using &lt;strong&gt;Link tag&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now questions arises what's the difference.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4bJWVLWX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xn23d4u1vosk8bt9smwf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4bJWVLWX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xn23d4u1vosk8bt9smwf.png" alt="Image" width="858" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you visit browser you will get this first 4 buttons &lt;strong&gt;Link tag&lt;/strong&gt; last 2 using &lt;strong&gt;anchor tag&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qVWSoPym--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ienaubzgakftbaftgwjy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qVWSoPym--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ienaubzgakftbaftgwjy.png" alt="Image" width="461" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you click on &lt;strong&gt;first 4&lt;/strong&gt; buttons then page won't reload as you can see that at the left top corner of image we got a semi circle like this &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6dGixI2v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fyo8116q08c21caly1z2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6dGixI2v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fyo8116q08c21caly1z2.png" alt="Image description" width="36" height="29"&gt;&lt;/a&gt; Means page didn't reload.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2UbHzHOt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/saelkh2rzqzcen587nwm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2UbHzHOt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/saelkh2rzqzcen587nwm.png" alt="Image " width="481" height="211"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you click on the last 2 then that button changed to &lt;strong&gt;x&lt;/strong&gt; means page reloaded.&lt;/p&gt;

&lt;p&gt;Now you must have noticed we created same route twice &lt;strong&gt;Line 7 to 9&lt;/strong&gt; same as &lt;strong&gt;Line 11 to 13&lt;/strong&gt; in one of them we used &lt;strong&gt;/about&lt;/strong&gt; and another just &lt;strong&gt;about&lt;/strong&gt; both are same in anchor tag also we done the same and it created the same thing but all the buttons will work so &lt;strong&gt;/&lt;/strong&gt; is not compulsory but need to be used.&lt;/p&gt;

&lt;p&gt;Now we will create the link in all pages.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FxjNxSLh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pdw23f5uwvwisji4fdhp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FxjNxSLh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pdw23f5uwvwisji4fdhp.png" alt="Image" width="587" height="554"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YWb1IiEW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b715m1rngmj8vlpzthu3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YWb1IiEW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b715m1rngmj8vlpzthu3.png" alt="Image" width="582" height="567"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5WSz4Je5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ptdi7vck7axt8bqx4lrl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5WSz4Je5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ptdi7vck7axt8bqx4lrl.png" alt="Image" width="587" height="637"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Removed un necessary links from &lt;strong&gt;Home.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--76Wpwb4f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kr7qpw8v57bxzcizd8jy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--76Wpwb4f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kr7qpw8v57bxzcizd8jy.png" alt="Image" width="761" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We clicked &lt;strong&gt;About&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nLMCAEeW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qyzelmub48g9cc5pbl7i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nLMCAEeW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qyzelmub48g9cc5pbl7i.png" alt="Image" width="593" height="340"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clicked &lt;strong&gt;Products&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CSQJ-o-B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/971u6k0lxxs3tj2l9gui.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CSQJ-o-B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/971u6k0lxxs3tj2l9gui.png" alt="Image" width="704" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clicked &lt;strong&gt;Home&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--S-G5wdfg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yytdr55s9s7g3x9jznef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--S-G5wdfg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yytdr55s9s7g3x9jznef.png" alt="Image" width="729" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Back to &lt;strong&gt;Home&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Error Page -:
&lt;/h2&gt;

&lt;p&gt;What if user typed something in the search bar other then the specified route suppose we typed &lt;strong&gt;&lt;a href="http://localhost:3000/admin"&gt;http://localhost:3000/admin&lt;/a&gt;&lt;/strong&gt; since we haven't created any route for this so we have nothing to serve the user so for such cases we use &lt;strong&gt;Error Page&lt;/strong&gt; if any one types other then specified &lt;strong&gt;route&lt;/strong&gt; they will get this error page.&lt;/p&gt;

&lt;p&gt;For this we need to move to &lt;strong&gt;App.js&lt;/strong&gt; where we set up our &lt;strong&gt;Routes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ECdBi8Cl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rztvm1rfb83p6xzcufqk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ECdBi8Cl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rztvm1rfb83p6xzcufqk.png" alt="Image" width="747" height="698"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; imported &lt;strong&gt;Error.js&lt;/strong&gt; which looks like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--25I1zH62--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0hlhrakutkkojs3a1lei.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--25I1zH62--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0hlhrakutkkojs3a1lei.png" alt="Image" width="592" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Back to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 15&lt;/strong&gt; we set a route as &lt;strong&gt;"*"&lt;/strong&gt; means if anyone type something else other then the above specified &lt;strong&gt;routes&lt;/strong&gt; then show them the &lt;strong&gt;Error page&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CMd5vRfo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gbm4oudorstqmr5fnq2g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CMd5vRfo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gbm4oudorstqmr5fnq2g.png" alt="Image" width="766" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We don't have this &lt;strong&gt;route&lt;/strong&gt; in our &lt;strong&gt;App&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Navbar -:
&lt;/h2&gt;

&lt;p&gt;Now we will see that  how we can setup a navbar so that it can be accessed from every where in our App.&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WttwJ-_1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zcjefu2ph0uz1l5lgkzn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WttwJ-_1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zcjefu2ph0uz1l5lgkzn.png" alt="Image" width="583" height="851"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11&lt;/strong&gt; we added &lt;strong&gt;navbar&lt;/strong&gt; and in &lt;strong&gt;Line 18&lt;/strong&gt; the &lt;strong&gt;footer&lt;/strong&gt;.&lt;br&gt;
Now if we move to the browser on our every page we can see that our &lt;strong&gt;nav&lt;/strong&gt; and &lt;strong&gt;footer&lt;/strong&gt; will be common.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hBpElPwk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ym40bdiblqawmfwhbdy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hBpElPwk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ym40bdiblqawmfwhbdy.png" alt="Image" width="565" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YPSoOeCk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ft9vd597wwvg3n4pr7ew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YPSoOeCk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ft9vd597wwvg3n4pr7ew.png" alt="Image" width="586" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Y3MiHEzs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a2bwy1qqi8yr6b16qrgj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y3MiHEzs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a2bwy1qqi8yr6b16qrgj.png" alt="Image" width="573" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was the basic approach of adding some shared layout between pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Navbar -:
&lt;/h2&gt;

&lt;p&gt;Here we will learn nested routes, shared layout, index page. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nested Routes -:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fGRP8YTY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/llk6njc26q72uesxc367.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fGRP8YTY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/llk6njc26q72uesxc367.png" alt="Image" width="803" height="844"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here you can see that &lt;strong&gt;Line 12 to 16&lt;/strong&gt; we made a route for home using &lt;strong&gt;/&lt;/strong&gt; and inside that route nested some more route so that any one types &lt;strong&gt;&lt;a href="http://localhost:3000/about"&gt;http://localhost:3000/about&lt;/a&gt;&lt;/strong&gt; we should get &lt;strong&gt;About component&lt;/strong&gt; lets move to browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VCSvi-Y---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8cg8p4l9lavlykt7simr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VCSvi-Y---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8cg8p4l9lavlykt7simr.png" alt="Image" width="736" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But we can see that it didn't work but now you may question that what if we set &lt;strong&gt;homes&lt;/strong&gt; route equal &lt;strong&gt;/something&lt;/strong&gt; same thing we did between &lt;strong&gt;Line 17 to 22&lt;/strong&gt; now let's move to browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8cSX6mU9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/frnifis020kq990ydplr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8cSX6mU9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/frnifis020kq990ydplr.png" alt="Image" width="719" height="331"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This also didn't worked every time we were just able to access the &lt;strong&gt;Home Page&lt;/strong&gt; or you can say that the parent component  of the nested route components.&lt;/p&gt;

&lt;p&gt;In order to do that move to the parent and import &lt;strong&gt;Outlet&lt;/strong&gt; as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ote3mLYx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eru62fj7n84r0v6v9q18.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ote3mLYx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eru62fj7n84r0v6v9q18.png" alt="Image" width="773" height="134"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now use it like a component as shown below &lt;strong&gt;Line 7&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6Et83kr---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a3fbwv3uj3ji931hpeud.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6Et83kr---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a3fbwv3uj3ji931hpeud.png" alt="Image" width="670" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Done, now if you move to the browser you will get the nested routes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--T8CZf03S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jltv0cx21au1lbnn7ia2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--T8CZf03S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jltv0cx21au1lbnn7ia2.png" alt="Image" width="769" height="517"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You must have noticed that &lt;strong&gt;Home page&lt;/strong&gt; is shared to all the nested routes so why don't we add a &lt;strong&gt;navbar&lt;/strong&gt; over here so that we can navigate and remove all the buttons as below about.&lt;/p&gt;

&lt;p&gt;So in order to do that let's create a &lt;strong&gt;components folder&lt;/strong&gt; in &lt;strong&gt;src&lt;/strong&gt; as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aA63AHBI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8tqq3h74i1b8a1o2is9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aA63AHBI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8tqq3h74i1b8a1o2is9.png" alt="Image" width="233" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a new file in this &lt;strong&gt;Navbar.js&lt;/strong&gt; and add this lines of code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mzLlvL75--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zgn4bnbt1fdaape68rit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mzLlvL75--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zgn4bnbt1fdaape68rit.png" alt="Image" width="771" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;Home.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9qZhpAVz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mpzjnmm1l6nzy98m11hb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9qZhpAVz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mpzjnmm1l6nzy98m11hb.png" alt="Imag" width="701" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 5 to 10&lt;/strong&gt; took a react fragment and wrapped every thing.&lt;/p&gt;

&lt;p&gt;Here &lt;strong&gt;Navbar&lt;/strong&gt; acts as a &lt;strong&gt;shared components&lt;/strong&gt; because inside section we fetched the content of different routes nested in &lt;strong&gt;Home&lt;/strong&gt; with the help of &lt;strong&gt;Outlet&lt;/strong&gt; but we kept &lt;strong&gt;Navbar&lt;/strong&gt; out of it so it will be common for each nested route.&lt;/p&gt;

&lt;p&gt;Here outlet works as an empty component which acts according to the route, when we call any component like we used outlet it will show the content of that component but outlet shows the content where the route takes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qIl2M-BP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnr7tpl3r7udalumyt0z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qIl2M-BP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnr7tpl3r7udalumyt0z.png" alt="Image" width="626" height="464"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D2m96UDb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m4lmj9kaplzpmuzis2t9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D2m96UDb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m4lmj9kaplzpmuzis2t9.png" alt="Image" width="687" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Both are working but what if we click &lt;strong&gt;Home&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xQ0VNLOM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r57u4hvjefgho8mzmkoo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xQ0VNLOM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r57u4hvjefgho8mzmkoo.png" alt="Image" width="642" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We got nothing because we haven't setup anything for the &lt;strong&gt;Home page&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now let's setup the &lt;strong&gt;Index Page&lt;/strong&gt; which will be displayed when ever we visit &lt;strong&gt;Home&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Index Page -:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First of all go to pages and create a new file &lt;strong&gt;Index.js&lt;/strong&gt; since we know that we are using &lt;strong&gt;Home.js&lt;/strong&gt; to display our nested routes using &lt;strong&gt;Outlet&lt;/strong&gt; and a shared component across them that is &lt;strong&gt;Navbar&lt;/strong&gt; as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cHkDxxzS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iy7tupmm1ljku2hn2xp1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cHkDxxzS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iy7tupmm1ljku2hn2xp1.png" alt="Image" width="642" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we need a different page so that we can show it at the &lt;strong&gt;Home route&lt;/strong&gt; that's why &lt;strong&gt;Index.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6oNG6Bdn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nf4rk6khvjv0j5y5x1ur.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6oNG6Bdn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nf4rk6khvjv0j5y5x1ur.png" alt="Image" width="880" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's use it in the &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kMXNC_ck--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2wux7di91q1bg344f4j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kMXNC_ck--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2wux7di91q1bg344f4j.png" alt="Image" width="805" height="745"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 7&lt;/strong&gt; imported &lt;strong&gt;Index.js&lt;/strong&gt;.&lt;br&gt;
&lt;strong&gt;Line 14&lt;/strong&gt; we create a route for our home page but it has some different syntax instead of path we wrote &lt;strong&gt;index&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Index-&lt;/strong&gt; Index in the route will copy the path of the parent route in our case &lt;strong&gt;/&lt;/strong&gt; and display the specified component.&lt;/p&gt;

&lt;p&gt;Now if you visit browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XF6vqNYE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wttytallhtc9hjwe13jb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XF6vqNYE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wttytallhtc9hjwe13jb.png" alt="Image" width="659" height="205"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We got what we written in &lt;strong&gt;index.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NavLink -:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is a property provided by the &lt;strong&gt;react-router-dom&lt;/strong&gt; it make sure that the link which is active needs to have different style.&lt;/p&gt;

&lt;p&gt;Create a new file &lt;strong&gt;StyledNavbar&lt;/strong&gt; in &lt;strong&gt;components&lt;/strong&gt; and add the following code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--p1rV1tDD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p7f1ga8en86y212a2h3x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--p1rV1tDD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p7f1ga8en86y212a2h3x.png" alt="Image" width="769" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we used &lt;strong&gt;NavLink&lt;/strong&gt; instead of &lt;strong&gt;Link&lt;/strong&gt; rest is same as we did earlier in &lt;strong&gt;Navbar.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;Home.js&lt;/strong&gt; and import this instead of &lt;strong&gt;Navbar.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ONdSlmPZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oh3ft4c0bsdtig0g0ybp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ONdSlmPZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oh3ft4c0bsdtig0g0ybp.png" alt="Image" width="666" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you visit browser you will be able to look that link which is active means the page on which we are currently present is of different color.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why its happening ?&lt;/strong&gt;&lt;br&gt;
Its happening because when we use &lt;strong&gt;NavLink&lt;/strong&gt; it goes to the &lt;strong&gt;CSS&lt;/strong&gt; file associated to that file and search for the class &lt;strong&gt;link&lt;/strong&gt; and &lt;strong&gt;active&lt;/strong&gt; once found it will apply the style written in &lt;strong&gt;Link&lt;/strong&gt; to all links and style of class &lt;strong&gt;active&lt;/strong&gt; to active links only.&lt;/p&gt;

&lt;p&gt;Since we are just using &lt;strong&gt;Index.css&lt;/strong&gt; to style so let's see is there any class of same name and what if we tweak it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cmYTpGN---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7orvrwywljgb006nb91v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cmYTpGN---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7orvrwywljgb006nb91v.png" alt="Image" width="568" height="625"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes we have let's make the active color red.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3In3NyO8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n8xrhh84jchhg89tf461.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3In3NyO8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n8xrhh84jchhg89tf461.png" alt="Image" width="449" height="618"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's see browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eEG7FBi4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9ogodanx5b332trjztf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eEG7FBi4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9ogodanx5b332trjztf.png" alt="Image" width="432" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It worked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if we remove this classes ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fvc-zUWB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0rwxbd441q91j5btqvk2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fvc-zUWB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0rwxbd441q91j5btqvk2.png" alt="Image" width="502" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vJxasRJ3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nqbtg4xipxk7mk3pkao3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJxasRJ3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nqbtg4xipxk7mk3pkao3.png" alt="Image d" width="612" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No styling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inline styling&lt;/strong&gt; in &lt;strong&gt;NavLink-:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cZku9g1f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8cl6ph0e4k3gmr8lrfy0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cZku9g1f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8cl6ph0e4k3gmr8lrfy0.png" alt="Image" width="803" height="605"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6 to 13&lt;/strong&gt; we can see that we passed inline.&lt;br&gt;
Here in &lt;strong&gt;NavLink&lt;/strong&gt; we passed &lt;strong&gt;style&lt;/strong&gt; attribute in this attribute we passed an arrow function inside &lt;strong&gt;{}&lt;/strong&gt; and in function parenthesis we passed property as an object and in the function return statement we specified the color rule using ternary operator.&lt;/p&gt;

&lt;p&gt;Now if you move to browser you will get.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jvsPH0WN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wn9dx7c7be4icg8p2qt3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jvsPH0WN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wn9dx7c7be4icg8p2qt3.png" alt="Image" width="551" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When we are at &lt;strong&gt;About&lt;/strong&gt;color of &lt;strong&gt;Home&lt;/strong&gt; is grey.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--s1-3RCyA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5zz4qual2bj6ycd4717o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--s1-3RCyA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5zz4qual2bj6ycd4717o.png" alt="Image" width="427" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If we click it it's color become &lt;strong&gt;red&lt;/strong&gt;.&lt;br&gt;
Now what if we want to apply CSS using &lt;strong&gt;CSS Classes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QCcFU7jk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6z51les70carrj6d2f2i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QCcFU7jk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6z51les70carrj6d2f2i.png" alt="Image" width="768" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we used the same class we seen before.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FqnwqQM2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aqim39zqi5xsecs199jh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FqnwqQM2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aqim39zqi5xsecs199jh.png" alt="Image" width="448" height="199"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can see that CSS is applied.&lt;/p&gt;

&lt;h2&gt;
  
  
  URL Params -:
&lt;/h2&gt;

&lt;p&gt;Helps us to show the dynamic data suppose we have a page products where different products can be found we need to make a functionality that when any one clicks on a single product then a separate page must open for it so are we going to create a page for each product no we will just use a single page and display every product on that.&lt;/p&gt;

&lt;p&gt;Suppose we have data coming from database and every product have same set of data then we just fetch the data and show it on the same page.&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;App.js&lt;/strong&gt; add a new route.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2uylymgF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/az1w0fnkxupn8b49peg0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2uylymgF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/az1w0fnkxupn8b49peg0.png" alt="Image" width="803" height="864"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; imported &lt;strong&gt;SingleProduct&lt;/strong&gt; let's see what inside it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kjmLhAyr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2mfuao6kx83pwyuw8o18.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kjmLhAyr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2mfuao6kx83pwyuw8o18.png" alt="Image" width="576" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Back to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;br&gt;
&lt;strong&gt;Line 18&lt;/strong&gt; we created a new &lt;strong&gt;route&lt;/strong&gt; for &lt;strong&gt;SingleProduct&lt;/strong&gt; but in path we specified that it will open after &lt;strong&gt;products&lt;/strong&gt; page and it need the &lt;strong&gt;productId&lt;/strong&gt; to show some thing.&lt;/p&gt;

&lt;p&gt;So lets visit browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UFELX2Bi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hm78e5vd0q4zexagfmv6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UFELX2Bi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hm78e5vd0q4zexagfmv6.png" alt="Image" width="544" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are at the products page see &lt;strong&gt;URL&lt;/strong&gt;.&lt;br&gt;
Now how we will be able to access &lt;strong&gt;SingleProduct&lt;/strong&gt; by providing the &lt;strong&gt;id&lt;/strong&gt; after product in &lt;strong&gt;URL&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Let's visit browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rdU51j6I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0veut06fxmbh5ryx358n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rdU51j6I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0veut06fxmbh5ryx358n.png" alt="Imag" width="656" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We provided &lt;strong&gt;id&lt;/strong&gt; as &lt;strong&gt;665&lt;/strong&gt; so we got &lt;strong&gt;SingleProduct&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Navigate to &lt;strong&gt;SingleProduct&lt;/strong&gt; and add this lines of code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dzGci7zf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wnh58m94bvijskntghr1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dzGci7zf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wnh58m94bvijskntghr1.png" alt="Image" width="640" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 1&lt;/strong&gt; imported &lt;strong&gt;useParams&lt;/strong&gt; hook.&lt;br&gt;
&lt;strong&gt;Line 3&lt;/strong&gt; console logged it.&lt;br&gt;
Lets see browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qMWzwYQq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qsdiidzpqor0nr09wem2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qMWzwYQq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qsdiidzpqor0nr09wem2.png" alt="Image" width="880" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we can see that in console we got the &lt;strong&gt;id&lt;/strong&gt; we actually passed in the &lt;strong&gt;URL&lt;/strong&gt; so &lt;strong&gt;useParams&lt;/strong&gt; is used to capture that.&lt;/p&gt;

&lt;p&gt;Now let's display this &lt;strong&gt;id&lt;/strong&gt; as &lt;strong&gt;JSX&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KpDC7nPO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jy40fis5cx8lp8dlwizq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KpDC7nPO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jy40fis5cx8lp8dlwizq.png" alt="Image" width="694" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 4&lt;/strong&gt; stored the &lt;strong&gt;id&lt;/strong&gt; in a variable using &lt;strong&gt;object destructuring&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; displayed at as &lt;strong&gt;JSX&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 9&lt;/strong&gt; link back to Products.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fxuC4zR8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qjb7h6eq73zabxv7uzef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fxuC4zR8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qjb7h6eq73zabxv7uzef.png" alt="Image" width="659" height="318"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Able to display the &lt;strong&gt;id&lt;/strong&gt; passed.&lt;/p&gt;

&lt;p&gt;Now we will iterate over the products in the &lt;strong&gt;data.js&lt;/strong&gt; and view it in products.&lt;/p&gt;

&lt;p&gt;Now if you move to &lt;strong&gt;data.js&lt;/strong&gt; it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--g3uK0Wb4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/350hlms66hmun5bxl49w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g3uK0Wb4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/350hlms66hmun5bxl49w.png" alt="Image" width="612" height="1018"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have three attributes in each fields &lt;strong&gt;id, name&lt;/strong&gt; and &lt;strong&gt;image&lt;/strong&gt; and we have total &lt;strong&gt;5&lt;/strong&gt; items.&lt;/p&gt;

&lt;p&gt;Now let's visit &lt;strong&gt;Products.js&lt;/strong&gt; and add this lines of code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Bo7e-L6g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/izvw8dimank2vpxjudsv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Bo7e-L6g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/izvw8dimank2vpxjudsv.png" alt="Image" width="771" height="690"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported products the data file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; iterated over the products.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11&lt;/strong&gt; displayed &lt;strong&gt;product.name&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 12&lt;/strong&gt; generated the button where passed the id as &lt;strong&gt;URL&lt;/strong&gt; from where we can grab in &lt;strong&gt;SingleProduct.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Lets Visit Browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6N7KDK6X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/po2gjattbnbdqih0rnky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6N7KDK6X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/po2gjattbnbdqih0rnky.png" alt="Image" width="653" height="738"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Git the products list let's click on &lt;strong&gt;Bar Stool&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2F2AU36E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ukhr44rrm8f32xytfknh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2F2AU36E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ukhr44rrm8f32xytfknh.png" alt="Image" width="682" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Got the &lt;strong&gt;id&lt;/strong&gt; of the &lt;strong&gt;Bar Stool&lt;/strong&gt; lets confirm it with &lt;strong&gt;data.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6cshBRxQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v09hzuz6md8noejf5b4r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6cshBRxQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v09hzuz6md8noejf5b4r.png" alt="Image" width="429" height="174"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Both are same.&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;SingleProduct.js&lt;/strong&gt; and add this code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pehghYnC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3tt5484mi4a9lt3cauqu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pehghYnC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3tt5484mi4a9lt3cauqu.png" alt="Image" width="880" height="652"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; imported &lt;strong&gt;Products&lt;/strong&gt; from &lt;strong&gt;data.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; fetched the &lt;strong&gt;id&lt;/strong&gt; coming from &lt;strong&gt;Products.js&lt;/strong&gt; using &lt;strong&gt;useParams&lt;/strong&gt; as we did before while showing &lt;strong&gt;id's&lt;/strong&gt; as &lt;strong&gt;JSX&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; we iterated through the &lt;strong&gt;products&lt;/strong&gt; find the product whose id matched with &lt;strong&gt;productId&lt;/strong&gt; and stored it in &lt;strong&gt;oneProduct&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 10&lt;/strong&gt; with the help of &lt;strong&gt;Object destructuring&lt;/strong&gt; we copied the image url as well as name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 15 and 16&lt;/strong&gt; displayed them.&lt;/p&gt;

&lt;p&gt;Now in the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CvzVLFBU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mmv24it7lhog36mk7lxu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CvzVLFBU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mmv24it7lhog36mk7lxu.png" alt="Image" width="620" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Got the product.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;useNavigate()-:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now we will look that how we can navigate to any page programatically using &lt;strong&gt;useNavigate&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;First move to &lt;strong&gt;App.js&lt;/strong&gt; add the specified lines of code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mp7pgCFa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/af1wcpx2x1t7ulib9mma.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mp7pgCFa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/af1wcpx2x1t7ulib9mma.png" alt="Image" width="880" height="910"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; imported &lt;strong&gt;useState&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11 and 12&lt;/strong&gt; imported &lt;strong&gt;Dashboard&lt;/strong&gt; and &lt;strong&gt;Login&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 15&lt;/strong&gt; defined &lt;strong&gt;useState&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 25 and 26&lt;/strong&gt; set the route for the &lt;strong&gt;login&lt;/strong&gt; and &lt;strong&gt;dashboard&lt;/strong&gt; and in element passed &lt;strong&gt;setUser&lt;/strong&gt; in &lt;strong&gt;Login&lt;/strong&gt; and &lt;strong&gt;user&lt;/strong&gt; in &lt;strong&gt;Dashboard&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now moved to &lt;strong&gt;StyledNavbar&lt;/strong&gt; and add two more links in your navbar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LNHttuii--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/50igs2luti0xbpy6fhs6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LNHttuii--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/50igs2luti0xbpy6fhs6.png" alt="Imag" width="880" height="893"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 24 to 29&lt;/strong&gt; added a &lt;strong&gt;NavLink&lt;/strong&gt; to &lt;strong&gt;Login&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now lets move to &lt;strong&gt;Login.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--o6vQd-RT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybxlkh1jt0ynojuthw77.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--o6vQd-RT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybxlkh1jt0ynojuthw77.png" alt="Image" width="522" height="922"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It has this lines of code and this can be easily understandable if not refer &lt;strong&gt;Advanced react&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now make this changes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LkKpBvZa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/42u4mr61jhc9v5ww6gvv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LkKpBvZa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/42u4mr61jhc9v5ww6gvv.png" alt="Image " width="547" height="1019"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Here in the above two figures we used &lt;strong&gt;async&lt;/strong&gt; in &lt;strong&gt;Line 6&lt;/strong&gt; and in &lt;strong&gt;Line 10&lt;/strong&gt; we can keep it or remove it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; import &lt;strong&gt;useNavigate&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 4&lt;/strong&gt; accepted &lt;strong&gt;setUser&lt;/strong&gt; the prop coming from &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; stored &lt;strong&gt;useNavigate&lt;/strong&gt; to a variable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 12&lt;/strong&gt; checked that &lt;strong&gt;name&lt;/strong&gt; and &lt;strong&gt;email&lt;/strong&gt; is valid or not if not return.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 13&lt;/strong&gt; if correct use &lt;strong&gt;setUser&lt;/strong&gt; function coming from &lt;strong&gt;App.js&lt;/strong&gt; this will copy this data to the &lt;strong&gt;user&lt;/strong&gt; in &lt;strong&gt;App.js&lt;/strong&gt; and if you remember that user is sent to &lt;strong&gt;dashboard&lt;/strong&gt; as prop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 14&lt;/strong&gt; used &lt;strong&gt;navigate&lt;/strong&gt; to navigate the &lt;strong&gt;dashboard&lt;/strong&gt; if form submitted successfully.&lt;/p&gt;

&lt;p&gt;Now let's move to &lt;strong&gt;Dashboard.js&lt;/strong&gt; and add this lines of code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aU_aXuNx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lhcwmu2byeosnrknlgu8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aU_aXuNx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lhcwmu2byeosnrknlgu8.png" alt="Image n" width="572" height="343"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 1&lt;/strong&gt; accepted &lt;strong&gt;user&lt;/strong&gt; the prop coming from &lt;strong&gt;App.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 4&lt;/strong&gt; used optional &lt;a href="https://www.javascripttutorial.net/es-next/javascript-optional-chaining-operator/"&gt;chaining&lt;/a&gt; to display the message.&lt;/p&gt;

&lt;p&gt;Now move to browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GuoORGX1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9td685wekur1wh9brlr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GuoORGX1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9td685wekur1wh9brlr.png" alt="Image" width="558" height="171"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are at &lt;strong&gt;Home&lt;/strong&gt; lets click &lt;strong&gt;Login&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ERAUZuOF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/upf5u940g5egtd3e7v7z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ERAUZuOF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/upf5u940g5egtd3e7v7z.png" alt="Image" width="696" height="662"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are at &lt;strong&gt;Login&lt;/strong&gt; and entered the data required lets click &lt;strong&gt;Login&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iJEoFmlR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ff8irx8xj2qoajy2npn9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iJEoFmlR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ff8irx8xj2qoajy2npn9.png" alt="Imag" width="579" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are at dashboard with message have you noticed it navigated us to dashboard moment we hit login button.&lt;/p&gt;

&lt;h2&gt;
  
  
  Protected route -:
&lt;/h2&gt;

&lt;p&gt;In &lt;strong&gt;Pages&lt;/strong&gt; create a new file &lt;strong&gt;ProtectedRoute.js&lt;/strong&gt; as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xQlsCQGZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ns1kbx8wrehd57kj5ydg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xQlsCQGZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ns1kbx8wrehd57kj5ydg.png" alt="Image" width="280" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Initially add this codes to it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zmO5ApZ9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tjpqsjctdq8g29lc9ymy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zmO5ApZ9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tjpqsjctdq8g29lc9ymy.png" alt="Image" width="511" height="321"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;App.js&lt;/strong&gt; and import it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WHsLNs_l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/554pyokcuai8hfyz7sdu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WHsLNs_l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/554pyokcuai8hfyz7sdu.png" alt="Image" width="585" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 13&lt;/strong&gt; we imported it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---gUcrdTR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nr1rfwlm0w940rbbqyya.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---gUcrdTR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nr1rfwlm0w940rbbqyya.png" alt="Image" width="792" height="660"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we wrapped the &lt;strong&gt;dashboard&lt;/strong&gt; in &lt;strong&gt;Protectected Route&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now if you visit browser you will get.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fwgWtKcC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51e333m3uvjq2vv37u2a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fwgWtKcC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51e333m3uvjq2vv37u2a.png" alt="Image" width="651" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;ProtectedRoute.js&lt;/strong&gt; and add this lines of code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_k5nOVsj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nxpyj7zgprei4i3cpxb0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_k5nOVsj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nxpyj7zgprei4i3cpxb0.png" alt="Image" width="735" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 1&lt;/strong&gt; imported &lt;strong&gt;navigate&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; accepted props passed one is normal prop user and another is children prop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 4 to 7&lt;/strong&gt; if not user back to home else return children.&lt;/p&gt;

&lt;p&gt;Now you will be able to access dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gctorsHZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dylwivemiuvsa8wmlr76.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gctorsHZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dylwivemiuvsa8wmlr76.png" alt="Image" width="564" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to check this functionality then manually type in the search bar this address &lt;strong&gt;&lt;a href="http://localhost:3000/dashboard"&gt;http://localhost:3000/dashboard&lt;/a&gt;&lt;/strong&gt; we will be redirected to &lt;strong&gt;Home page&lt;/strong&gt; .&lt;/p&gt;

</description>
      <category>react</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Parallax Effects While Scrolling - React</title>
      <dc:creator>hrb11182</dc:creator>
      <pubDate>Fri, 24 Jun 2022 11:11:29 +0000</pubDate>
      <link>https://dev.to/hrb11182/parallax-effects-while-scrolling-react-426m</link>
      <guid>https://dev.to/hrb11182/parallax-effects-while-scrolling-react-426m</guid>
      <description>&lt;p&gt;&lt;strong&gt;Here we are going to have a look on three types of parallax effects-&amp;gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1 - Normal&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;2 - Dynamic Blur&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;3 - Reverse&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In order to do that we need to install a react package.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--evgvgQ1B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o7eiqikevsha51d2vrbi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--evgvgQ1B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o7eiqikevsha51d2vrbi.png" alt="Image" width="880" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Command - &lt;code&gt;npm i react-parallax&lt;/code&gt; or &lt;code&gt;yarn add react-parallax&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Normal Parallax-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--e7AruhE7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rh63prnuj52bcuwslv3f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--e7AruhE7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rh63prnuj52bcuwslv3f.png" alt="Image" width="494" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported the &lt;strong&gt;Parallax&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; imported the image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; Used the parallax and passed two parameters &lt;strong&gt;strength&lt;/strong&gt;(we will talk about it later) and &lt;strong&gt;background image.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 9, 10 and 11&lt;/strong&gt; passed the content to be displayed on that background.&lt;/p&gt;

&lt;p&gt;Now move to browser you will see this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--paOOycMJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nwt6wirylyzsdwaajjll.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--paOOycMJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nwt6wirylyzsdwaajjll.png" alt="Image" width="880" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is there but needs to be styled so let's add some css to it.&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;App.js&lt;/strong&gt; and add the CSS shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Obvh_gTN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/guh860gmxfz50uedbxfc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Obvh_gTN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/guh860gmxfz50uedbxfc.png" alt="Image" width="416" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to the browser it will look some thing like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ERxS6NBZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2uf44duk95phhr597ukb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ERxS6NBZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2uf44duk95phhr597ukb.png" alt="Imag" width="880" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you won't be able to scroll since we just have a single component. &lt;br&gt;
So just add another div of class &lt;strong&gt;container&lt;/strong&gt; after the main div it will give more 100vh to scroll because in CSS we gave 100 vh to the div with class container.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_TvLCAA0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ry89oca4mzken65snmoc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_TvLCAA0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ry89oca4mzken65snmoc.png" alt="Image" width="543" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 14 and 15&lt;/strong&gt; we added a new div.&lt;/p&gt;

&lt;p&gt;Now if you scroll you will see that image don't move and next div scroll on the top of it which gives a nice effect.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TFkc_K45--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utuycn40cw7dls38cij7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TFkc_K45--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utuycn40cw7dls38cij7.png" alt="Image" width="880" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This was the normal parallax.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now let's import two more images.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--05O-xJjA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/34ymulyjis1e549gwply.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--05O-xJjA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/34ymulyjis1e549gwply.png" alt="Image description" width="424" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 4 and 5&lt;/strong&gt; imported them. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blurred Parallax&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In order to make the blurred parallax we just need to make strength 300 and it needs one more value &lt;strong&gt;blur&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EQ0ugp1s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b10fnmd6r9eikerg62v9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EQ0ugp1s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b10fnmd6r9eikerg62v9.png" alt="Image" width="637" height="115"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reverse Parallax&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In order to make the reverse parallax we just need to make strength -600.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FGFOMAxX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wtc24fcdw2evwv98nf7w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FGFOMAxX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wtc24fcdw2evwv98nf7w.png" alt="Image" width="542" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Whole code look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--biY4tNgR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nxvb25clgffdh3k20380.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--biY4tNgR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nxvb25clgffdh3k20380.png" alt="Image" width="570" height="365"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TZL396Lq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/men7ifi9md1sqx8y5rqn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TZL396Lq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/men7ifi9md1sqx8y5rqn.png" alt="Image" width="485" height="121"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to browser it will work like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9cul7yh_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lber5yjgql7702ob1gbq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9cul7yh_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lber5yjgql7702ob1gbq.png" alt="Image " width="880" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nztMtlR7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kcleqx5cus51hz8eqf30.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nztMtlR7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kcleqx5cus51hz8eqf30.png" alt="Image " width="880" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--j1V8BkxU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9j0botdrkl3lhi19lgoq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j1V8BkxU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9j0botdrkl3lhi19lgoq.png" alt="Image " width="880" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strength means how much the back ground image will be scrolled up while scrolling the page if 200 it will be scrolled more with less parallax effect and 800 means it will rest like the content is scrolling on the top of it.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>react</category>
    </item>
    <item>
      <title>In-Page Navigation Tutorial in React</title>
      <dc:creator>hrb11182</dc:creator>
      <pubDate>Thu, 23 Jun 2022 15:22:00 +0000</pubDate>
      <link>https://dev.to/hrb11182/in-page-navigation-tutorial-in-react-d03</link>
      <guid>https://dev.to/hrb11182/in-page-navigation-tutorial-in-react-d03</guid>
      <description>&lt;p&gt;Here we are going to have a look that how we can make links to navigate the different pages of the same website.&lt;/p&gt;

&lt;p&gt;In order to do that we need to install two packages &lt;strong&gt;react-router-dom&lt;/strong&gt; and &lt;strong&gt;react-router-hash-link&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;yarn add react-router-dom react-router-hash-link&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Here we have About, Our products, and Services so will create a link to the services section only.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Move to your &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fpecamoke76gpioxpbrck.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fpecamoke76gpioxpbrck.png" alt="Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; imported &lt;strong&gt;Browser Router&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 10 to 30&lt;/strong&gt; wrapped every thing inside &lt;strong&gt;Browser Router&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;Services.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F5vfqb39h1yrsuk3r284a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F5vfqb39h1yrsuk3r284a.png" alt="Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; Provided an &lt;strong&gt;ID&lt;/strong&gt; service.&lt;/p&gt;

&lt;p&gt;Move to your &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fgwsyypg1n460qynltf60.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fgwsyypg1n460qynltf60.png" alt="Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 7&lt;/strong&gt; imported &lt;strong&gt;Hashlink&lt;/strong&gt; as link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 18 to 20&lt;/strong&gt; created a hash link to the section with &lt;strong&gt;ID - service&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now move to browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fkiuie2y2y7j7phvxv1fl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fkiuie2y2y7j7phvxv1fl.png" alt="Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Got a link to services once you click it will take you to the services page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Frz1evln7fpronbj8xlr7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Frz1evln7fpronbj8xlr7.png" alt="Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you click it will suddenly take you to that section now we make some changes to make the scroll smooth.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fkhz6230zvemeltyzs2tv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fkhz6230zvemeltyzs2tv.png" alt="Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 18&lt;/strong&gt; added keyword smooth this will do the job.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>react</category>
    </item>
    <item>
      <title>MI website clone walkthrough</title>
      <dc:creator>hrb11182</dc:creator>
      <pubDate>Sun, 29 May 2022 09:31:48 +0000</pubDate>
      <link>https://dev.to/hrb11182/mi-website-clone-walkthrough-2ccp</link>
      <guid>https://dev.to/hrb11182/mi-website-clone-walkthrough-2ccp</guid>
      <description>&lt;p&gt;Make a new folder where you want to store the project and open it in VS-Code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fBNyK43I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g36cb7x8w1i88ue1vq8w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fBNyK43I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g36cb7x8w1i88ue1vq8w.png" alt="Image" width="789" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This code will create react project for you in the same folder.&lt;/p&gt;

&lt;p&gt;Remove all the files except &lt;strong&gt;App.js&lt;/strong&gt;, &lt;strong&gt;Index.js&lt;/strong&gt;, &lt;strong&gt;App.css&lt;/strong&gt; from &lt;strong&gt;src&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;src/App.css&lt;/strong&gt; and remove every line of code from there.&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;src/index.js&lt;/strong&gt; and make it look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EVXES_m3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8yspx5f8wr9i6kz02n4h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EVXES_m3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8yspx5f8wr9i6kz02n4h.png" alt="Image" width="335" height="206"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;src/App.js&lt;/strong&gt; and make it look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Tcf-XYiO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8sw075t5yyefaa1kabkm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Tcf-XYiO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8sw075t5yyefaa1kabkm.png" alt="Image" width="347" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a new folder in src named as data and copy the &lt;strong&gt;json&lt;/strong&gt; file from the source code present at my &lt;a href="https://github.com/hrb11182/mi-store-clone/tree/master/src/data"&gt;github&lt;/a&gt; account.&lt;/p&gt;

&lt;p&gt;Make a folder &lt;strong&gt;components&lt;/strong&gt; in &lt;strong&gt;src&lt;/strong&gt; and with in that one file &lt;strong&gt;PreNavbar.js&lt;/strong&gt; a component and import and use it in &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zfOqiDJ4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ubo6k0mt2qtkb1rv009o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zfOqiDJ4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ubo6k0mt2qtkb1rv009o.png" alt="Image" width="277" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---8dcR9UJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j29ssrp1407ixtjoc2ew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---8dcR9UJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j29ssrp1407ixtjoc2ew.png" alt="Image" width="415" height="313"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now make another folder named &lt;strong&gt;styles&lt;/strong&gt; where we will store the stylings of all the components and start with making the CSS file of the &lt;strong&gt;PreNavbar&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Import this CSS in the &lt;strong&gt;PreNavbar&lt;/strong&gt; component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J_rEv3DT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29ii5gvhwx6ve8rl7q44.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J_rEv3DT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29ii5gvhwx6ve8rl7q44.png" alt="Image" width="135" height="98"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q3660Ok8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbu55hwoqf6e33dj1rns.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q3660Ok8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbu55hwoqf6e33dj1rns.png" alt="Image" width="364" height="294"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;PreNavbar&lt;/strong&gt; add this lines of code inside the &lt;strong&gt;div&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J5fPFmAh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fy6lsrzgknk9u0fjtzga.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J5fPFmAh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fy6lsrzgknk9u0fjtzga.png" alt="Image" width="813" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All the given links are the real links from the &lt;strong&gt;MI India Website&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Oeurgmmb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iu0zb09bghej817673vn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Oeurgmmb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iu0zb09bghej817673vn.png" alt="Image" width="442" height="156"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will look like this in the browser.&lt;/p&gt;

&lt;p&gt;Now let's work on the &lt;strong&gt;CSS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mCclpbU3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ibla6wyi26o7tkl8cdh1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mCclpbU3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ibla6wyi26o7tkl8cdh1.png" alt="Image" width="402" height="156"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will look like this in the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5Vyexqso--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6ruy59gva1z0emrnmji.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5Vyexqso--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6ruy59gva1z0emrnmji.png" alt="Image" width="880" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In App.css add this styles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gnIMKZDJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vy7z2z62ffx0ss9zn43c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gnIMKZDJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vy7z2z62ffx0ss9zn43c.png" alt="Image" width="491" height="206"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will result in this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YBtiuVV6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/esugcfq0hh5mn4yl1bfj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YBtiuVV6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/esugcfq0hh5mn4yl1bfj.png" alt="Image" width="880" height="78"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TTc72bdU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/47szvw4etgdku6expnyi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TTc72bdU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/47szvw4etgdku6expnyi.png" alt="Image" width="350" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xOJ5TfHp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2thr33x549baft8o3w4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xOJ5TfHp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2thr33x549baft8o3w4.png" alt="Image" width="880" height="108"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uLWmdx8l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4wqg0wapeiq14c7w43mv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uLWmdx8l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4wqg0wapeiq14c7w43mv.png" alt="Image" width="380" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qZBBWtKS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/989bvxtlbnp8jfcheb79.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qZBBWtKS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/989bvxtlbnp8jfcheb79.png" alt="Image" width="880" height="127"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jzI8pl5g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s20u217gcelj0109k9ca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jzI8pl5g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s20u217gcelj0109k9ca.png" alt="Image" width="617" height="160"&gt;&lt;/a&gt;&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Sqd3JWv8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zzzwpem4btil0y6w4gfi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Sqd3JWv8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zzzwpem4btil0y6w4gfi.png" alt="Image" width="880" height="104"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5hZUpTgD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a6jkdgcsk7jdmpd3hkww.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5hZUpTgD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a6jkdgcsk7jdmpd3hkww.png" alt="Image" width="632" height="374"&gt;&lt;/a&gt;&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w57VPOqR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zs0ahzb59injfkumd7r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w57VPOqR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zs0ahzb59injfkumd7r.png" alt="Image" width="880" height="121"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now lets add cart icon in our &lt;strong&gt;PreNavbar&lt;/strong&gt; in order to do that visit google icons and search for the cart in the search bar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iPjSEz8P--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wss670bxlgfe7oh0n53z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iPjSEz8P--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wss670bxlgfe7oh0n53z.png" alt="Image" width="880" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select whatever you want and download as svg.&lt;br&gt;
Once the file is downloaded copy t hat &lt;strong&gt;svg code&lt;/strong&gt; make a variable in PreNavbar.js and add that code in that variable line 5 in the fig below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GQqAVOyP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1amqcy4fbs3fq71cmsx6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GQqAVOyP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1amqcy4fbs3fq71cmsx6.png" alt="Image" width="774" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done use that as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YI-X16T1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ggor2v822dqt3kxonvmo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YI-X16T1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ggor2v822dqt3kxonvmo.png" alt="Image" width="844" height="285"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you visit the browser you will get the cart icon but something like black in color which doesn't look good.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wiFfwh-F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zse6varqe0vfn64ei4zc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wiFfwh-F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zse6varqe0vfn64ei4zc.png" alt="Image" width="880" height="110"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;PreNavbar.css&lt;/strong&gt; and try to change the color of the cart icon line 19 in the figure below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4CttCghZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fp27gohxvlwgty9e9iqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4CttCghZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fp27gohxvlwgty9e9iqd.png" alt="Image" width="804" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now in the browser cart icon will appear.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2lBu2eAX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ud18jhry38scar2exlfl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2lBu2eAX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ud18jhry38scar2exlfl.png" alt="Image" width="880" height="179"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's add some hover effect to the cart icon line 23.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--utSsJS7s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1l8bv0vizq4jnr4uh75.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--utSsJS7s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1l8bv0vizq4jnr4uh75.png" alt="Image" width="495" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Style is looking a bit messy so let's add some more styling to it in &lt;strong&gt;.preNav &amp;gt; div&lt;/strong&gt; display it as flex and align it at center line 8.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KeZKGQy---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s29q7lrwg7ncom6ovnye.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KeZKGQy---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s29q7lrwg7ncom6ovnye.png" alt="Image" width="581" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will result in something like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--djNj2455--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vk2d2olzisj7kat2f3kb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--djNj2455--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vk2d2olzisj7kat2f3kb.png" alt="Image" width="880" height="173"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Working with the NAV-BAR -
&lt;/h2&gt;

&lt;p&gt;Make a navbar component and import it in &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rSfnObOA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqy3vmtthh84br2jc71m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rSfnObOA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqy3vmtthh84br2jc71m.png" alt="Image" width="517" height="377"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vcP3BSkM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pt5awvsqso4cgsr8tq3w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vcP3BSkM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pt5awvsqso4cgsr8tq3w.png" alt="Image" width="450" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add the following styling to &lt;strong&gt;nav.css&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dm9TU7Hb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/clw9v5m73p81dxlx4xv8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dm9TU7Hb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/clw9v5m73p81dxlx4xv8.png" alt="Image" width="408" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lets add something in the &lt;strong&gt;Navbar.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--azrPlSpa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lbrpx9x5w1mf0xrb3oyv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--azrPlSpa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lbrpx9x5w1mf0xrb3oyv.png" alt="Image" width="327" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now in the browser it will look something like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tSe_k82V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jm168dxg8z6mj2zn2x9w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tSe_k82V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jm168dxg8z6mj2zn2x9w.png" alt="Image" width="880" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bjDKY0by--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fr84rter2po0ceelmmsc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bjDKY0by--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fr84rter2po0ceelmmsc.png" alt="Image" width="483" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Zkb6atJi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vl8k34tdgch7dx7i0kp3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Zkb6atJi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vl8k34tdgch7dx7i0kp3.png" alt="Image" width="880" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O9ezGRFM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yrf1qy3ps2xtmkhs6tvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O9ezGRFM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yrf1qy3ps2xtmkhs6tvi.png" alt="Image" width="539" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--y0JIt0iy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/okq0h2x5jwfij72hwlbv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--y0JIt0iy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/okq0h2x5jwfij72hwlbv.png" alt="Image" width="880" height="148"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we need &lt;strong&gt;react-router-dom&lt;/strong&gt; lets install it using following commands.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--h4PoB6Wb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gx3m3vdsykmjy5cl5cpn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h4PoB6Wb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gx3m3vdsykmjy5cl5cpn.png" alt="Image" width="866" height="136"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done with the installation move to &lt;strong&gt;App.js&lt;/strong&gt; and import &lt;strong&gt;BrowserRouter&lt;/strong&gt; from &lt;strong&gt;react-router-dom&lt;/strong&gt; line 4 and wrap all the imported components in to it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GsF57scn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4e2o73js4jhozl2h16p8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GsF57scn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4e2o73js4jhozl2h16p8.png" alt="Image" width="573" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;Navbar.js&lt;/strong&gt; and import &lt;strong&gt;Link&lt;/strong&gt; from &lt;strong&gt;react-router-dom&lt;/strong&gt; line 4 and also import &lt;strong&gt;logo&lt;/strong&gt; line 3 in line 12 to 14 we will use the link tag and with in that we use img tag as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gXX5WgJE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8o41pkbxrxwgwcioqx4d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gXX5WgJE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8o41pkbxrxwgwcioqx4d.png" alt="Image" width="536" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we are just linking the image with the path &lt;strong&gt;"/"&lt;/strong&gt; so that if any one clicks on that image (logo in our case) we can redirect the user to home page or any page with address &lt;strong&gt;"/"&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7pY8Yq-v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/il10lf8k0hm7n09znf4c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7pY8Yq-v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/il10lf8k0hm7n09znf4c.png" alt="Image" width="880" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are getting our logo here since our logo is white we are unable to see.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sZqL1PwS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5vbvrdygqalalc4uqm0p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sZqL1PwS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5vbvrdygqalalc4uqm0p.png" alt="Image" width="713" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--THpjW3Ht--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z33ghsy4h0iglne2a92m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--THpjW3Ht--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z33ghsy4h0iglne2a92m.png" alt="Image" width="880" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we added all the links to the navbar and a search box.&lt;/p&gt;

&lt;p&gt;Now we need a search icon beside the search box so copied the svg code from google icons and stored in a variable line 6.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6OfHPjhP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n2e3k9e9qxgeiicel0no.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6OfHPjhP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n2e3k9e9qxgeiicel0no.png" alt="Image" width="832" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now use this icon just after the search box.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x2RYRKtt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iq0911e71w20xzee5eiq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x2RYRKtt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iq0911e71w20xzee5eiq.png" alt="Image" width="750" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you visit the browser it will look some thing like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CaO9yqmX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uzvzksadqhflqmm9782y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CaO9yqmX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uzvzksadqhflqmm9782y.png" alt="Image" width="880" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now visit the &lt;strong&gt;nav.css&lt;/strong&gt; and add this css to it line 12 to 20.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5Ye0EON2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rixxy8tsi4tpgmjhfvhf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5Ye0EON2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rixxy8tsi4tpgmjhfvhf.png" alt="Image" width="601" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now website will look some thing like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M9PmgCZN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pcjgtfhslpg1leid0uda.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M9PmgCZN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pcjgtfhslpg1leid0uda.png" alt="Image" width="880" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now add css to the logo.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vh148EQn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d2mfecxo2aj3kcevqlum.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vh148EQn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d2mfecxo2aj3kcevqlum.png" alt="Image" width="524" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;There is one correction in the file Navbar.js we need to close the div opened in line 12 for the logo as shown in the figure below so in order to do so we added a closing div tag at line 18 and remove an extra closing div tag from the bottom of the page Line 37 in the second fig&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DHTT3t6k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnnzs91bfk8n5g5jcud4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DHTT3t6k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnnzs91bfk8n5g5jcud4.png" alt="Image" width="828" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Sl048VQq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iwppzlwca8m4zlj99tl5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Sl048VQq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iwppzlwca8m4zlj99tl5.png" alt="Image" width="880" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if we visit our website it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JKFBYoWa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qg0z673r3pot4m04xmtn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JKFBYoWa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qg0z673r3pot4m04xmtn.png" alt="Image" width="880" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now its time to design search box.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xbawbuJd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u4w9jww4pgj2prtahuuk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xbawbuJd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u4w9jww4pgj2prtahuuk.png" alt="Image" width="542" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YxEeJF9W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/njob934mte81unwkob9w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YxEeJF9W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/njob934mte81unwkob9w.png" alt="Image" width="880" height="226"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Style the navlink's hover effect.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--i2Gkbko---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xvc71t5xodj61bv8yv1y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i2Gkbko---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xvc71t5xodj61bv8yv1y.png" alt="Image" width="630" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7SueiS-3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xbd65e5teu73tstj2gce.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7SueiS-3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xbd65e5teu73tstj2gce.png" alt="Image" width="880" height="206"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you visit MI's website you will see that whenever you hover on the logo it changes from &lt;strong&gt;MI&lt;/strong&gt; to &lt;strong&gt;Home&lt;/strong&gt; now let's work on it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5nmj5Npn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hx067eduylm8te1rs8v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5nmj5Npn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hx067eduylm8te1rs8v.png" alt="Image" width="545" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HquBZdSi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ntxenoeql4eubox9729h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HquBZdSi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ntxenoeql4eubox9729h.png" alt="Image" width="880" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QiZ7LhPk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4espytnaqce0lc9nxw8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QiZ7LhPk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4espytnaqce0lc9nxw8z.png" alt="Image" width="880" height="269"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's design the slider.&lt;/p&gt;

&lt;p&gt;In order to do that we will use bootstrap so let's install that.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ca56Int1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqd8uqs2bo6phn8o3j9q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ca56Int1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqd8uqs2bo6phn8o3j9q.png" alt="Image" width="840" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to create the slider move to the &lt;strong&gt;components&lt;/strong&gt; folder and make a new component &lt;strong&gt;Slider.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In order to read the documentation or to find the way that how the slider will be prepared using bootstrap move to the link shown below in the image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZZPKuB6O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hd1uixqum0gama3syfif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZZPKuB6O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hd1uixqum0gama3syfif.png" alt="Image" width="855" height="459"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copy the code from the site and change accordingly as shown in the fig. below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B7qkgIYm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j8dnp21vj207axmrcgc8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B7qkgIYm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j8dnp21vj207axmrcgc8.png" alt="Image" width="857" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to make this run we need to import the carousel from bootstrap.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BbvZEg48--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rpzo2smb76gs7qns7038.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BbvZEg48--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rpzo2smb76gs7qns7038.png" alt="Image" width="665" height="265"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Used image's link in the carousel can be obtained from the file we stored data.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now move to the &lt;strong&gt;App.js&lt;/strong&gt; and import that slider.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Aw_q7R-4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9k6e36rvqgm5gx6ptbyi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Aw_q7R-4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9k6e36rvqgm5gx6ptbyi.png" alt="Image" width="478" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KMaSjAen--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wesua58bmk94ikzulwee.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KMaSjAen--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wesua58bmk94ikzulwee.png" alt="Image " width="880" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---iIslD7t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fahru8fyd2dbky5yrmxn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---iIslD7t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fahru8fyd2dbky5yrmxn.png" alt="Imag" width="880" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But this is not the right way of using the image.&lt;br&gt;
Here we will send data from &lt;strong&gt;App.js&lt;/strong&gt; here we import the &lt;strong&gt;data.json&lt;/strong&gt; file and send the banner data as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EstJJyK_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qyz9irzn3yw62fmlx70w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EstJJyK_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qyz9irzn3yw62fmlx70w.png" alt="Image" width="444" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above fig in line 6 we imported &lt;strong&gt;banner&lt;/strong&gt;(an object of images and captions of both the sliders used in the website one named as &lt;strong&gt;start&lt;/strong&gt;(an array of image links) another as "End"(array of images with there captions)  from the &lt;strong&gt;data.json&lt;/strong&gt; and in line 15 just sent the &lt;strong&gt;start&lt;/strong&gt; part of the banner to the &lt;strong&gt;Slider&lt;/strong&gt; as props since we are designing the carousel at the start of the site.&lt;/p&gt;

&lt;p&gt;Now move to the Slider.js.&lt;/p&gt;

&lt;p&gt;In the first slider we just need the image not the captions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TbmS0bIB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xxvbq73f9icvqrgjd77.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TbmS0bIB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xxvbq73f9icvqrgjd77.png" alt="Image" width="533" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above figure we imported &lt;strong&gt;carousel&lt;/strong&gt;  from the bootstrap in &lt;strong&gt;Line 2&lt;/strong&gt; and in &lt;strong&gt;Line 3&lt;/strong&gt; we imported bootstrap's css.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In line 6&lt;/strong&gt; we passed start you can pass any letter or word this is just to capture the prop send from the &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In line 8&lt;/strong&gt; we passed fade it is the effect needs to be applied while switching between the slides of the carousel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In line 11&lt;/strong&gt; we used &lt;strong&gt;map function&lt;/strong&gt; on the start (Which is accepting the prop(banner.start from data.json) from App.js), so map is iterating all the items in the array banner and every time it encounters an item it store that in the variable item passed in the &lt;strong&gt;map function line 11&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 13, 14, 15&lt;/strong&gt; different tags, classnames and attributes from bootstrap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 15&lt;/strong&gt; we passed that item( contains the link from data .json ) in the src.&lt;/p&gt;

&lt;p&gt;Now if you move to the browser you carousel will be there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--T69tvG-A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfjsri0gkzjylseqs41u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--T69tvG-A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfjsri0gkzjylseqs41u.png" alt="Image" width="880" height="468"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here in the slider we didn't used css because we used bootstrap.&lt;/p&gt;

&lt;p&gt;Now after the sliders we have offer components showing the offers in the form of cards as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Qa5g3NlW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/khi7m0pynggko0mxglqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Qa5g3NlW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/khi7m0pynggko0mxglqd.png" alt="Image" width="880" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to make this component we again need images from data.json so instead of importing banner from data.json in App.js why don't we import whole data and use it as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tyPDxf91--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f0smnadewnrsg5t3m7zt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tyPDxf91--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f0smnadewnrsg5t3m7zt.png" alt="Image" width="473" height="367"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; imported the whole data instead of just the banner.&lt;br&gt;
&lt;strong&gt;Line 7&lt;/strong&gt; imported the offers component.&lt;br&gt;
&lt;strong&gt;Line 15&lt;/strong&gt; instead of &lt;strong&gt;banner.start&lt;/strong&gt; now in order to get the start we need to go one step deeper because we imported data not the banner so &lt;strong&gt;data.banner.start&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Line 16&lt;/strong&gt; we passed &lt;strong&gt;offer&lt;/strong&gt; as props in which we put the array of data &lt;strong&gt;offer&lt;/strong&gt; from data.json&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LT84m2P9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ao9bw8lk8fb5vqo7tip8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LT84m2P9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ao9bw8lk8fb5vqo7tip8.png" alt="Image" width="737" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Offer in data.json.&lt;/p&gt;

&lt;p&gt;Now lets move to &lt;strong&gt;Offers component&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aIvJsEoP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhn2rgn0moajay7onmav.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aIvJsEoP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhn2rgn0moajay7onmav.png" alt="Image" width="608" height="323"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here in &lt;strong&gt;Line 2&lt;/strong&gt; we imported &lt;strong&gt;offer.js&lt;/strong&gt;(we will discuss on it later).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; we passed the data coming from &lt;strong&gt;offer&lt;/strong&gt;(from app.js to &lt;strong&gt;offers&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 9&lt;/strong&gt; we applied &lt;strong&gt;map function&lt;/strong&gt; to the offer to iterate all the items in the offer present in &lt;strong&gt;data.json&lt;/strong&gt; and information of each offer will be stored in the item and index is to count the number of items.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 10&lt;/strong&gt; we made a component &lt;strong&gt;offer.js&lt;/strong&gt; so we passed all the information coming from &lt;strong&gt;data.json&lt;/strong&gt; about offer, Here in &lt;strong&gt;index&lt;/strong&gt; we just need to pass the index and in &lt;strong&gt;src&lt;/strong&gt; item's image and in &lt;strong&gt;link&lt;/strong&gt; item's url this three are required to do the work but &lt;strong&gt;key&lt;/strong&gt; is an essential if you don't use key map will throw errors in console so we used key and passed the first attribute of the &lt;strong&gt;offer data&lt;/strong&gt; comming from &lt;strong&gt;data.json&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Now move to the &lt;strong&gt;offer.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_7sKMRO3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bzic5t9b7fjr2579mwf6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_7sKMRO3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bzic5t9b7fjr2579mwf6.png" alt="Image" width="562" height="268"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; Here we took all the data comming from &lt;strong&gt;offers.js&lt;/strong&gt;.&lt;br&gt;
&lt;strong&gt;Line 4&lt;/strong&gt; returned an anchor tag with an image tag encapsulated in that.&lt;/p&gt;

&lt;p&gt;Here &lt;strong&gt;image&lt;/strong&gt; will show up on the website and will behave like an anchor tag with some &lt;strong&gt;link&lt;/strong&gt; and &lt;strong&gt;index&lt;/strong&gt; is used in template literals as alternate text.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zgdB_sTE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vnzgxnjmn85l9923fhox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zgdB_sTE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vnzgxnjmn85l9923fhox.png" alt="Image" width="880" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now just below our carousel we got our offers which doesn't look the way we want so now we need to add some &lt;strong&gt;css&lt;/strong&gt; to it.&lt;/p&gt;

&lt;p&gt;Make a css file and move to offers.js and import the &lt;strong&gt;Css file&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SMCdiwfc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/37nr9oue700ahjef22c3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SMCdiwfc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/37nr9oue700ahjef22c3.png" alt="Image" width="447" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--H1vHWml3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rwmbfo2ljv2c3uu0u0o7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H1vHWml3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rwmbfo2ljv2c3uu0u0o7.png" alt="Image" width="681" height="313"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to the browser you will get this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uu86yNh3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cv99aeqzbmwvtsdrlbjf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uu86yNh3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cv99aeqzbmwvtsdrlbjf.png" alt="Image" width="880" height="333"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we start working on the &lt;strong&gt;Heading component&lt;/strong&gt; because in the rest of the page multiple headings are used of same style as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZiQ3i2W0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qtd2e3almiirmw24azao.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZiQ3i2W0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qtd2e3almiirmw24azao.png" alt="Image" width="880" height="248"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GQabqZ7B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/98w3geq7ahphq7rtoa8q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GQabqZ7B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/98w3geq7ahphq7rtoa8q.png" alt="Image" width="880" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now lets create a &lt;strong&gt;Heading.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RpXePHaE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f3zt9gbij6z20lu2lgdz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RpXePHaE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f3zt9gbij6z20lu2lgdz.png" alt="Image" width="358" height="289"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done let's import them in &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--z2M7k8PA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a5r5s6y0vjgln3ztkah6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--z2M7k8PA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a5r5s6y0vjgln3ztkah6.png" alt="Image" width="513" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now within the &lt;strong&gt;App.js&lt;/strong&gt; pass a value in the &lt;strong&gt;Heading component&lt;/strong&gt; as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SeVpJolP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f4t88yul6j9lfdauho3z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SeVpJolP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f4t88yul6j9lfdauho3z.png" alt="Image" width="487" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we passed &lt;strong&gt;STAR PRODUCTS&lt;/strong&gt; as the value for heading now the question arises that how we will change the value so answer is that we don't need to do so because we need to use heading multiple times so every time we use heading in the &lt;strong&gt;App.js&lt;/strong&gt; we will pass a new value.&lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;Heading.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--g-v7T8Em--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yzpl1h0u9d4ashskgpka.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g-v7T8Em--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yzpl1h0u9d4ashskgpka.png" alt="Image" width="300" height="312"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported the css file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 4&lt;/strong&gt; passed the text coming from the &lt;strong&gt;App.js&lt;/strong&gt; as prop.&lt;/p&gt;

&lt;p&gt;Then took two divs and a para tag.&lt;/p&gt;

&lt;p&gt;Now let's move to the CSS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--K1WOhX4M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba8ipxhnh3lafoosz401.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--K1WOhX4M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba8ipxhnh3lafoosz401.png" alt="Image" width="377" height="292"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--e_ZVuAZc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxaptwxvsos2sbtrd39h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--e_ZVuAZc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxaptwxvsos2sbtrd39h.png" alt="Image" width="423" height="268"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to the browser it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Pu3Q7MQp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cy6djcwgih6nr5dwiv6y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Pu3Q7MQp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cy6djcwgih6nr5dwiv6y.png" alt="Image" width="880" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are done with the &lt;strong&gt;Heading&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now let's work on the &lt;strong&gt;Star Product component&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yDFmOckm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6l0yv26mzeiloa75sxsh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yDFmOckm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6l0yv26mzeiloa75sxsh.png" alt="Image" width="880" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KKv39hoC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2t6bmvbtn8j1evkdi2gt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KKv39hoC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2t6bmvbtn8j1evkdi2gt.png" alt="Image" width="296" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once component is made let's import it in &lt;strong&gt;App.js&lt;/strong&gt; and pass the relevant data. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JPguvIu5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nqmaidx7fm3j1zpvkjd0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JPguvIu5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nqmaidx7fm3j1zpvkjd0.png" alt="Image" width="449" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now before moving ahead lets have a look on the data file to come to know that how the data is arranged in the data.json.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YjD_T-EX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rswqzbmo9u77fv2uxsbs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YjD_T-EX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rswqzbmo9u77fv2uxsbs.png" alt="Image" width="880" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you look to the design you need to create then you come to know that &lt;strong&gt;1st product&lt;/strong&gt; (power bank) comes in a big box and &lt;strong&gt;next two&lt;/strong&gt; (earphones and bags) in the two halves of a rectangular box(you can say half of the big box in which power banks are present) and at the bottom rectangular box(you can say half of the big box in which power banks are present) smart bands are present.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qGFaH8xD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zjhidkexl061407rkby.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qGFaH8xD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zjhidkexl061407rkby.png" alt="Image" width="880" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's design this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Cciyopnu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f43sal6mwcw2fqw90xol.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Cciyopnu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f43sal6mwcw2fqw90xol.png" alt="Image" width="752" height="275"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; passed the data coming from &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Since every product requires different space so we need separate divs for them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; a div consist of an anchor tag having the url of the 0th product(or the 1st product power banks) from the data passed in &lt;strong&gt;App.js&lt;/strong&gt; and an &lt;strong&gt;image tag&lt;/strong&gt; within the &lt;strong&gt;anchor tag&lt;/strong&gt; having the image of the 0th product and at last an &lt;strong&gt;alternate text&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now if you move to browser it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5HvXCVVE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/61zo7uu926niqb0cp4jw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5HvXCVVE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/61zo7uu926niqb0cp4jw.png" alt="Image" width="880" height="487"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--K62mg82J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtsdlpj36465l9ey6mc5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--K62mg82J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtsdlpj36465l9ey6mc5.png" alt="Image" width="785" height="311"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We wrapped next three in another div.&lt;/p&gt;

&lt;p&gt;Now if you move to browser it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UPX92FZy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0sbybxu511njqry2yg8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UPX92FZy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0sbybxu511njqry2yg8z.png" alt="Image" width="880" height="508"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now the role of css comes in.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oN8Y5yhR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/60fzffrhdbl7t9ynld21.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oN8Y5yhR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/60fzffrhdbl7t9ynld21.png" alt="Image" width="477" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now use this css. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mRYI0s4X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rb1x9uaq3slsl554oocf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mRYI0s4X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rb1x9uaq3slsl554oocf.png" alt="Image" width="799" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line-2&lt;/strong&gt; imported the CSS file lets move to browser. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J6t-whw7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhq8k8uo6253qd5ywrfh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J6t-whw7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhq8k8uo6253qd5ywrfh.png" alt="Image " width="880" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now lets work on &lt;strong&gt;Hot Accessories&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IRUz5Yv2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i4a27n5o49xet8bbp64d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IRUz5Yv2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i4a27n5o49xet8bbp64d.png" alt="Image" width="880" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First of all lets add another heading in the &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5maMyeLk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s93mz2n3u3cg6uc78w02.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5maMyeLk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s93mz2n3u3cg6uc78w02.png" alt="Image" width="469" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's look in to the browser in order to understand that what happened.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--b07thVmg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vwzguorobgvv302iz5j5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--b07thVmg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vwzguorobgvv302iz5j5.png" alt="Image" width="880" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We got a new heading &lt;strong&gt;Hot Accessories&lt;/strong&gt; at the very bottom.&lt;/p&gt;

&lt;p&gt;Now lets work on the menu of &lt;strong&gt;Hot Accessories&lt;/strong&gt; and whenever you click on the menu items a list of items will show up which is different for every menu items as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vt5P1-ZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zripwe1wso8kls72irf6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vt5P1-ZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zripwe1wso8kls72irf6.png" alt="Image" width="880" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hot Accessories menu&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First of all create the component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6Lrq71fn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5mtn1ojcprzq55r0mku8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6Lrq71fn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5mtn1ojcprzq55r0mku8.png" alt="Image" width="525" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now import it to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zSRbBZm1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cn9rkh8jq38ea8x7x5jf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zSRbBZm1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cn9rkh8jq38ea8x7x5jf.png" alt="Image" width="613" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 10&lt;/strong&gt; imported the &lt;strong&gt;HotAccessoriesMenu&lt;/strong&gt;.&lt;br&gt;
&lt;strong&gt;Line 22&lt;/strong&gt; Used it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xpTftWsL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/afchnaymasdczhlbulsl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xpTftWsL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/afchnaymasdczhlbulsl.png" alt="Image" width="745" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Made the links here in every link I used &lt;strong&gt;to&lt;/strong&gt; which specifies the path as shown below we are at the music so at the end we are getting &lt;strong&gt;/music&lt;/strong&gt; in the url.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IcJXNsOB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hz7rs1jy79wi4zj05662.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IcJXNsOB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hz7rs1jy79wi4zj05662.png" alt="Image" width="606" height="86"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we need to style them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zIKWz84H--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5goihi3fuunnojo9m3cw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zIKWz84H--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5goihi3fuunnojo9m3cw.png" alt="Image description" width="513" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use this css to style the menu.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9f08mArR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtsqvr9t4u8zi583vjlp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9f08mArR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtsqvr9t4u8zi583vjlp.png" alt="Image" width="785" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Imported the style in &lt;strong&gt;HotAccessoriesMenu.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Move to the browser it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t9tEpMDe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6b5q7jlyg93u5i0muul.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t9tEpMDe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6b5q7jlyg93u5i0muul.png" alt="Image" width="880" height="130"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now start working on the &lt;strong&gt;HotAccessories&lt;/strong&gt;(music).&lt;/p&gt;

&lt;p&gt;Create a new file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V_B8lWRc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rj3qkyirzt0dyydgb4vb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V_B8lWRc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rj3qkyirzt0dyydgb4vb.png" alt="Image" width="338" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Ypdutn7w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atqlaghe4i15w5nqw1av.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Ypdutn7w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atqlaghe4i15w5nqw1av.png" alt="Image" width="736" height="362"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jj3-lMHs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mk44zfnvkrtd53tzpcca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jj3-lMHs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mk44zfnvkrtd53tzpcca.png" alt="Image" width="739" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 4&lt;/strong&gt; imported &lt;strong&gt;Route&lt;/strong&gt; (we will use it later).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11&lt;/strong&gt; imported the component &lt;strong&gt;Hot Accessories&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 26&lt;/strong&gt; using route we specified that if the path is exactly &lt;strong&gt;/music&lt;/strong&gt; then only pass the parameters below to the component &lt;strong&gt;HotAccessories&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Before moving ahead let's have a look in to the &lt;strong&gt;data.json&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_RNinSpT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc7xflcdyuplv6ef9tr2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_RNinSpT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc7xflcdyuplv6ef9tr2.png" alt="Image" width="880" height="792"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JK9vKKPm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u49cqpm3qpb2p49jc8wt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JK9vKKPm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u49cqpm3qpb2p49jc8wt.png" alt="Image" width="880" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dbjVaq9Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/htutryez7dz9diumnyha.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dbjVaq9Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/htutryez7dz9diumnyha.png" alt="Image description" width="880" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we can clearly see that we have an object &lt;strong&gt;hotaccessories&lt;/strong&gt; in &lt;strong&gt;data.json&lt;/strong&gt; and in that object there is an array containing data for each items in the &lt;strong&gt;Hot Accessories menu&lt;/strong&gt; and at the end of the object &lt;strong&gt;hotaccessories&lt;/strong&gt; we have an object &lt;strong&gt;hotAccessoriesCover&lt;/strong&gt; consist of all the cover photos(in the above figure photo of compact bluetooth speaker is the coverphoto of this item of the &lt;strong&gt;hotaccessoriesmenu&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 27&lt;/strong&gt; we passed the data from data.json.&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;HotAccessories.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--br9rZOJv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zok6muv2scs9n8rwfvcn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--br9rZOJv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zok6muv2scs9n8rwfvcn.png" alt="Image" width="880" height="353"&gt;&lt;/a&gt;&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JZwOerfH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1hlun5x0e4hwa63b04av.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JZwOerfH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1hlun5x0e4hwa63b04av.png" alt="Image" width="880" height="119"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported &lt;strong&gt;HotItemCard&lt;/strong&gt;(we will talk about it later).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 5&lt;/strong&gt; passed the value &lt;strong&gt;music&lt;/strong&gt; and &lt;strong&gt;music cover&lt;/strong&gt; comming from &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 9 to 11&lt;/strong&gt; took a div and just showed the cover image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 15 to 20&lt;/strong&gt; another div to show rest of the items.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 16&lt;/strong&gt; iterated all the data in the music comming from &lt;br&gt;
&lt;strong&gt;App.js&lt;/strong&gt; and stored them in item(one data at a time) index to count the total number of data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 17&lt;/strong&gt; Used a component &lt;strong&gt;HotItemCard&lt;/strong&gt; in that we passed all the attributes of the item( Such as its image, name, price and its occurence in data.json using index inorder to clearly understand that let's have a look towards data.json).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--E-eW33GK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jp0q8mqye2rj8g8sdnt1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--E-eW33GK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jp0q8mqye2rj8g8sdnt1.png" alt="Image" width="880" height="567"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above image we can see that every item in the music has name, price and its image.&lt;/p&gt;

&lt;p&gt;Now let's work on &lt;strong&gt;HotItemCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5_PFNuK9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yxvbiqxw5q6psoedqbr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5_PFNuK9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yxvbiqxw5q6psoedqbr.png" alt="Image" width="445" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; we received all the props coming from &lt;strong&gt;HotAccessories.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; used the image and index coming from &lt;strong&gt;HotAccessories.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 7 &amp;amp; 8&lt;/strong&gt; used price and names.&lt;/p&gt;

&lt;p&gt;Lets visit the  browser to have a look what we did so far.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SO3TAL8m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/89rjsisqkvkxvntognge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SO3TAL8m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/89rjsisqkvkxvntognge.png" alt="Image" width="880" height="478"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VJNrkgMK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rzrd287oq134780fn83t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VJNrkgMK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rzrd287oq134780fn83t.png" alt="Image" width="604" height="457"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we come to know that every image/card is there but not in the fashion we want.&lt;/p&gt;

&lt;p&gt;So in order to do so we need to style &lt;strong&gt;HotItemCard.js&lt;/strong&gt; as well as &lt;strong&gt;HotAccessories.js&lt;/strong&gt; so lets dive in to it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Styling HotItemCard.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--A5Nlo1E9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/phkeniq1psrxp6ixbn6d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A5Nlo1E9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/phkeniq1psrxp6ixbn6d.png" alt="Image" width="630" height="795"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done import this &lt;strong&gt;CSS file&lt;/strong&gt; to the &lt;strong&gt;HotItemCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OIkeMm9h--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nzcd2bi4grj9f1xgc9cl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OIkeMm9h--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nzcd2bi4grj9f1xgc9cl.png" alt="Image description" width="428" height="318"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported the style. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4V_3NZj3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i21o4gvygkx64znt9o7x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4V_3NZj3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i21o4gvygkx64znt9o7x.png" alt="Image description" width="537" height="340"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5TD7BIz7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rhbxwghstnoi459u7u6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5TD7BIz7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rhbxwghstnoi459u7u6.png" alt="Image description" width="571" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how the cards look in the browser. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Styling HotAccessories.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--g5ZWHVGT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v669owv1ar21jyntqd31.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g5ZWHVGT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v669owv1ar21jyntqd31.png" alt="Image description" width="446" height="485"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done import this &lt;strong&gt;CSS file&lt;/strong&gt; to the &lt;strong&gt;HotAccessories.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P28oAIcW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7akbizbf176bgvxvmvxz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P28oAIcW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7akbizbf176bgvxvmvxz.png" alt="Image description" width="816" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; imported the style.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qtAVjGoK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lomg5v87hjgtg6c5d5kg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qtAVjGoK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lomg5v87hjgtg6c5d5kg.png" alt="Image description" width="880" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how it looks in the browser.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Similarly we will design each items from Hot Accessories.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Hot Accessories&lt;/strong&gt; (Smart devices).&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mz5bt_ft--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ho69yqlp903x7ssx6gbx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mz5bt_ft--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ho69yqlp903x7ssx6gbx.png" alt="Image description" width="817" height="133"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Just below music add the route of &lt;strong&gt;Smart devices&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rQ8_Rgbc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d7xkodhsg01ie99a0y5n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rQ8_Rgbc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d7xkodhsg01ie99a0y5n.png" alt="Image description" width="606" height="141"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In browser if you click smart devices. &lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;HotAccessories.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Z-80qqmS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jut9avqra2a8ccjd48ke.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z-80qqmS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jut9avqra2a8ccjd48ke.png" alt="Image description" width="605" height="218"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Receive the props &lt;strong&gt;Line 6&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CnJVTVlJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ooyo4a76bujns3hica64.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CnJVTVlJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ooyo4a76bujns3hica64.png" alt="Image description" width="639" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the cover image section/div if the music cover is present then show music cover and if smart devices cover is present the smart devices &lt;strong&gt;Line 11&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sf7XCGog--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/agx6g1gvfsebp2srfhzd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sf7XCGog--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/agx6g1gvfsebp2srfhzd.png" alt="Image description" width="827" height="243"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;just below music add smart devices here &lt;strong&gt;&amp;amp;&amp;amp;&lt;/strong&gt; is used to ensure that if music is present then only show it. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tCwhBmmO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22v39mltxvgji89p214f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tCwhBmmO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22v39mltxvgji89p214f.png" alt="browser view" width="880" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to browser you will get this.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Changes we need to make for the rest of the items.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In &lt;strong&gt;App.js&lt;/strong&gt; added routes. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UmQRaaPY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o3prq0pj94oumeanul2d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UmQRaaPY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o3prq0pj94oumeanul2d.png" alt="Image description" width="831" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;HotAccessories.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YhrBKFJ1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u3p3c7qz44pq7crc3r3y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YhrBKFJ1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u3p3c7qz44pq7crc3r3y.png" alt="Image description" width="779" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; received all the props.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oTXBiaGg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i1couvuwjcom07azfocj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oTXBiaGg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i1couvuwjcom07azfocj.png" alt="Image description" width="777" height="131"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Done with the cover images. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mQRm2Cc8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ey11bh5apu4pnplcgmnb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mQRm2Cc8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ey11bh5apu4pnplcgmnb.png" alt="Image description" width="835" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sent the data to the &lt;strong&gt;HotItemCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4sdnFKmw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/216ny9cvsvtzg9xqcebz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4sdnFKmw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/216ny9cvsvtzg9xqcebz.png" alt="Image description" width="880" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qNrf73Hq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7hf4x9atq4pwqjucyqr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qNrf73Hq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7hf4x9atq4pwqjucyqr.png" alt="Image description" width="878" height="511"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aq-6ItCj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vmlvs6r3tqsrwk9no3se.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aq-6ItCj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vmlvs6r3tqsrwk9no3se.png" alt="Image description" width="880" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the browser view. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Look on the routes at the top of the every images to confirm don't be confused with the cursor&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fmpzlpM8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbzjeqwolw4y66ct8x5a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fmpzlpM8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbzjeqwolw4y66ct8x5a.png" alt="Image description" width="364" height="276"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's design this.&lt;/p&gt;

&lt;p&gt;In order to design it we need to do nothing just take the image link and send it to the &lt;strong&gt;HotItemCard.js&lt;/strong&gt; it will do the work for you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DwbyMg_5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oc3qsxfvg4satn991v8a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DwbyMg_5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oc3qsxfvg4satn991v8a.png" alt="Image description" width="814" height="230"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 40&lt;/strong&gt; we passed that image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Fyfgl2yX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9imcxzd4xc0skz7h3kc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Fyfgl2yX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9imcxzd4xc0skz7h3kc.png" alt="Image description" width="880" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you move to the browser you will get it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product Review Section&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yVJtIT9w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qpcvuemdg3d18vpsvx7e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yVJtIT9w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qpcvuemdg3d18vpsvx7e.png" alt="Image description" width="880" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;App.js&lt;/strong&gt; and first of all make that heading.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JBSiNQue--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hp02d5fdrt6nigkkcysc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JBSiNQue--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hp02d5fdrt6nigkkcysc.png" alt="Image description" width="725" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If we look at the browser it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oVkk2hu0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdg3g8yf5iva4ba8387b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oVkk2hu0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdg3g8yf5iva4ba8387b.png" alt="Image description" width="880" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now make a new component &lt;strong&gt;ProductReviews.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Y1hFRMzC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vsw0ewxqvwij3s2u8jw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y1hFRMzC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vsw0ewxqvwij3s2u8jw.png" alt="Image description" width="335" height="283"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Move to &lt;strong&gt;App.js&lt;/strong&gt; import it and use it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5A62z6Dj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ko2683arpx001v8cug9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5A62z6Dj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ko2683arpx001v8cug9.png" alt="Image description" width="667" height="179"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11&lt;/strong&gt; imported it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TAKOxsCF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/scne1hr82qqyianachgm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TAKOxsCF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/scne1hr82qqyianachgm.png" alt="Image description" width="801" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 52&lt;/strong&gt; used that component and passed the data. &lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;ProductReviews.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YdKTYJ05--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhmkdtja7utvdsb2mgi7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YdKTYJ05--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhmkdtja7utvdsb2mgi7.png" alt="Image description" width="850" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported the &lt;strong&gt;ProductReviewCard.js&lt;/strong&gt;(we will talk about it later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 5&lt;/strong&gt; received the props coming from the &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 9&lt;/strong&gt; Iterated through the data and stored one at a time in item and index to count the total number of items in the productReviews(line 5 prop).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11&lt;/strong&gt; passed the data to &lt;strong&gt;ProductReviewCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now lets work on &lt;strong&gt;ProductReviewCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--klcKIn7M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/td5c1a9kqskxlhvzp0rg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--klcKIn7M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/td5c1a9kqskxlhvzp0rg.png" alt="Image description" width="491" height="278"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; received all the props coming from  &lt;strong&gt;ProductReviews.js&lt;/strong&gt;.&lt;br&gt;
&lt;strong&gt;Line 5 to 10&lt;/strong&gt; used that data to structure the card.&lt;/p&gt;

&lt;p&gt;Now if you move to the browser you will get this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EGh-JYHZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pa8yuaiamre99vvrkiwn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EGh-JYHZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pa8yuaiamre99vvrkiwn.png" alt="Image description" width="792" height="511"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now its time to design them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ProductReviewCard.js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---o6EN4M3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mwkhbflkt5hepn1s3xsk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---o6EN4M3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mwkhbflkt5hepn1s3xsk.png" alt="Image description" width="573" height="559"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add this CSS file. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fE9rxG9Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gh7b34y56b2rz8tbh1j2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fE9rxG9Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gh7b34y56b2rz8tbh1j2.png" alt="Image description" width="525" height="343"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Imported the &lt;strong&gt;CSS file&lt;/strong&gt; &lt;strong&gt;line 3&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bsImy5WF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9bd5d7qei399l1aoy98h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bsImy5WF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9bd5d7qei399l1aoy98h.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you move to the browser it will look like this. &lt;/p&gt;

&lt;p&gt;Now let's add some CSS to &lt;strong&gt;ProductReviews.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eWF5iRpG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zqgwjhg1uylnrv5ylt6w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eWF5iRpG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zqgwjhg1uylnrv5ylt6w.png" alt="Image description" width="245" height="137"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add this CSS file to the &lt;strong&gt;ProductReviews.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_-Kqyt-D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l5zt1qeejdsulap7l5ys.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_-Kqyt-D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l5zt1qeejdsulap7l5ys.png" alt="Image description" width="508" height="179"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; Imported the CSS file. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8UE9mzWe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vh1qxumpc6q5yh3p4um1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8UE9mzWe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vh1qxumpc6q5yh3p4um1.png" alt="Image description" width="880" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to the browser it will look like this.&lt;/p&gt;

&lt;p&gt;Now let's work on the &lt;strong&gt;Videos Section&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XnSmZQ70--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lds7bc7q7zjhx6lsn7lg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XnSmZQ70--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lds7bc7q7zjhx6lsn7lg.png" alt="Image description" width="880" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's first design the headings move to &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--07M_ykwV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4a88gh2b4vhpxm3ifcc0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--07M_ykwV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4a88gh2b4vhpxm3ifcc0.png" alt="Image description" width="833" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 54&lt;/strong&gt; added heading.&lt;/p&gt;

&lt;p&gt;Make a new component &lt;strong&gt;Videos.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3ym8b9KW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cjyzkbby7v1jxc522hzz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3ym8b9KW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cjyzkbby7v1jxc522hzz.png" alt="Image description" width="286" height="249"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--p71vlUoZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/70p8oupryc2qhtmh3jxp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--p71vlUoZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/70p8oupryc2qhtmh3jxp.png" alt="Image description" width="586" height="289"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Imported the &lt;strong&gt;Videos.js&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WWvMuU2p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjmb69zy42u3w15acoqm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WWvMuU2p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjmb69zy42u3w15acoqm.png" alt="Image description" width="525" height="278"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 54&lt;/strong&gt; using the &lt;strong&gt;video component&lt;/strong&gt; and passed the data.&lt;/p&gt;

&lt;p&gt;Now move to the &lt;strong&gt;Videos.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hz-OO8VT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cll0hllh7tt1b3y9eqam.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hz-OO8VT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cll0hllh7tt1b3y9eqam.png" alt="Image description" width="698" height="333"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported &lt;strong&gt;VideoCard.js&lt;/strong&gt;(we will work on it later).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 5&lt;/strong&gt; received the props.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 7 to 13&lt;/strong&gt; passed all the data to &lt;strong&gt;VideoCard.js&lt;/strong&gt; to design the card.&lt;/p&gt;

&lt;p&gt;Styling &lt;strong&gt;Videos.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4orH2LVk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tcc6mjh86iujsdjnbcy9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4orH2LVk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tcc6mjh86iujsdjnbcy9.png" alt="Image description" width="240" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use this CSS file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XA4p9Kxe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mqblxwt9889kpcit1oy5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XA4p9Kxe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mqblxwt9889kpcit1oy5.png" alt="Image description" width="689" height="321"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; imported the CSS file. &lt;/p&gt;

&lt;p&gt;Work with &lt;strong&gt;VideoCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0PAI5QnH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0s92jh58o255ba11tajx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0PAI5QnH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0s92jh58o255ba11tajx.png" alt="Image description" width="756" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 5&lt;/strong&gt; in a variable stored the &lt;strong&gt;SVG code&lt;/strong&gt; of the play button icon taken from &lt;strong&gt;Google icons&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6&lt;/strong&gt; received all the props.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 8&lt;/strong&gt; set the background image using inline css because the image is coming as prop so it can't be carried or passed to any css file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 10&lt;/strong&gt; used that &lt;strong&gt;play button&lt;/strong&gt; declared earlier.&lt;br&gt;
&lt;strong&gt;Line 11&lt;/strong&gt; used the name.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aD0iJDZe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bbr6mtl3eqsot778didw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aD0iJDZe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bbr6mtl3eqsot778didw.png" alt="Image description" width="832" height="112"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you move to browser it will look like this now we need to add a css file to it.&lt;/p&gt;

&lt;p&gt;Styling &lt;strong&gt;VideoCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ppspHOlB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qok4jk8pmvqpf5khttp3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ppspHOlB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qok4jk8pmvqpf5khttp3.png" alt="Image description" width="441" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add this &lt;strong&gt;CSS file&lt;/strong&gt; to &lt;strong&gt;VideoCard.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QR5s_06u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2bw5beg8t6zyz0yehnow.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QR5s_06u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2bw5beg8t6zyz0yehnow.png" alt="Image description" width="760" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; imported the css file. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ugb6XIVI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1yjpj87pgi8fz5232k55.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ugb6XIVI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1yjpj87pgi8fz5232k55.png" alt="Image description" width="880" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to the browser it will look like this.&lt;/p&gt;

&lt;p&gt;Now let's work on the &lt;strong&gt;In the press Section&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jtJv1qAm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idy3wba42uai58s1c5mi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jtJv1qAm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idy3wba42uai58s1c5mi.png" alt="Image description" width="880" height="358"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to do that first of all create the heading in &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4QxReb6k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ljk31yn71x2rn5ymo40y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4QxReb6k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ljk31yn71x2rn5ymo40y.png" alt="Image description" width="666" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 58&lt;/strong&gt; created the Heading.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--G2Is7PJ3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8wxcbei8borcuyeiti3a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--G2Is7PJ3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8wxcbei8borcuyeiti3a.png" alt="Image description" width="880" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the browser it looks like this. &lt;/p&gt;

&lt;p&gt;Now create a new component &lt;strong&gt;Banner.js.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---BQuRFpn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyydhut4z742yfywsnr4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---BQuRFpn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyydhut4z742yfywsnr4.png" alt="Image description" width="362" height="243"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let's move to &lt;strong&gt;App.js&lt;/strong&gt; and import it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tWd6SwKw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4kdlxggt7mo758784zgi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tWd6SwKw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4kdlxggt7mo758784zgi.png" alt="Image description" width="590" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 14&lt;/strong&gt; imported the component. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bt2agADU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lkiedm7ljhensdft0bpv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bt2agADU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lkiedm7ljhensdft0bpv.png" alt="Image description" width="823" height="403"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 60&lt;/strong&gt; used the component and passed the data,&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3J83Z_ct--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l2hkrqpkzw7kdxwc73hb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3J83Z_ct--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l2hkrqpkzw7kdxwc73hb.png" alt="Image description" width="880" height="738"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you remember in our data(shown in above fig) we have banner object which has two arrays of items 1st is start and 2nd is end so using start we created the &lt;strong&gt;Slider.js&lt;/strong&gt; component above now we need to use the &lt;strong&gt;End&lt;/strong&gt; array of items to design this &lt;strong&gt;Banner.js&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Now move to &lt;strong&gt;Banner.js&lt;/strong&gt; and design it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YdA4LUEj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5k50efpni1xlun4jti0v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YdA4LUEj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5k50efpni1xlun4jti0v.png" alt="Image description" width="576" height="651"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2 &amp;amp; 3&lt;/strong&gt; imported the bootstrap and its css file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 9&lt;/strong&gt; specified the transition style.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 11&lt;/strong&gt; iterated the data and used it one by one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 13&lt;/strong&gt; interval specifies that in 1000 millisec. the slides will change automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 20 to 25&lt;/strong&gt; used caption to provide the details which was missing in Slider.js &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;If you don't understand move to the start of the post and have a look to the slider we made before.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NKHSgjcW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/opc5g7lif90tm9pzxbfb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NKHSgjcW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/opc5g7lif90tm9pzxbfb.png" alt="Image description" width="880" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to the browser it will look like this.&lt;/p&gt;

&lt;p&gt;Let's start working on the &lt;strong&gt;Footer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tKlPT0Q2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lqxrm7kz1lr60o98ywcs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tKlPT0Q2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lqxrm7kz1lr60o98ywcs.png" alt="Image description" width="880" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First of all create anew component named &lt;strong&gt;Footer.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dft_hUBR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhognamdep7ra97yaug5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dft_hUBR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhognamdep7ra97yaug5.png" alt="Image description" width="416" height="285"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Import it to &lt;strong&gt;App.js.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Nwa4fBfR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tty5btn9by2wrm9gtobg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Nwa4fBfR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tty5btn9by2wrm9gtobg.png" alt="Image description" width="671" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 15&lt;/strong&gt; imported it. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SYKmBWhl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0z6yk3p2vamnt0gny0t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SYKmBWhl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0z6yk3p2vamnt0gny0t.png" alt="Image description" width="544" height="345"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 63&lt;/strong&gt; used that component and passed the data.&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 "../styles/PreFooter.css"
import "../styles/Footer.css"


const repeatIcon = &amp;lt;svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"&amp;gt;&amp;lt;path d="M0 0h24v24H0V0z" fill="none"/&amp;gt;&amp;lt;path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"/&amp;gt;&amp;lt;/svg&amp;gt;

const shieldIcon = &amp;lt;svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"&amp;gt;&amp;lt;path d="M0 0h24v24H0V0z" fill="none"/&amp;gt;&amp;lt;path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm7 10c0 4.52-2.98 8.69-7 9.93-4.02-1.24-7-5.41-7-9.93V6.3l7-3.11 7 3.11V11zm-11.59.59L6 13l4 4 8-8-1.41-1.42L10 14.17z" /&amp;gt;&amp;lt;/svg&amp;gt;

const mapIcon = &amp;lt;svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"&amp;gt;&amp;lt;path d="M0 0h24v24H0V0z" fill="none"/&amp;gt;&amp;lt;path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"/&amp;gt;&amp;lt;/svg&amp;gt;




const youtubeIcon = &amp;lt;svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-35.20005 -41.33325 305.0671 247.9995"&amp;gt;&amp;lt;path d="M229.763 25.817c-2.699-10.162-10.65-18.165-20.747-20.881C190.716 0 117.333 0 117.333 0S43.951 0 25.651 4.936C15.554 7.652 7.602 15.655 4.904 25.817 0 44.237 0 82.667 0 82.667s0 38.43 4.904 56.85c2.698 10.162 10.65 18.164 20.747 20.881 18.3 4.935 91.682 4.935 91.682 4.935s73.383 0 91.683-4.935c10.097-2.717 18.048-10.72 20.747-20.88 4.904-18.422 4.904-56.851 4.904-56.851s0-38.43-4.904-56.85" /&amp;gt;&amp;lt;path d="M93.333 117.558l61.334-34.89-61.334-34.893z" fill="#fff"/&amp;gt;&amp;lt;/svg&amp;gt;



const twitterIcon = &amp;lt;svg  xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-44.7006 -60.54775 387.4052 363.2865"&amp;gt;&amp;lt;path d="M93.719 242.19c112.46 0 173.96-93.168 173.96-173.96 0-2.646-.054-5.28-.173-7.903a124.338 124.338 0 0030.498-31.66c-10.955 4.87-22.744 8.148-35.11 9.626 12.622-7.57 22.313-19.543 26.885-33.817a122.62 122.62 0 01-38.824 14.841C239.798 7.433 223.915 0 206.326 0c-33.764 0-61.144 27.381-61.144 61.132 0 4.798.537 9.465 1.586 13.941-50.815-2.557-95.874-26.886-126.03-63.88a60.977 60.977 0 00-8.279 30.73c0 21.212 10.794 39.938 27.208 50.893a60.685 60.685 0 01-27.69-7.647c-.009.257-.009.507-.009.781 0 29.61 21.075 54.332 49.051 59.934a61.218 61.218 0 01-16.122 2.152 60.84 60.84 0 01-11.491-1.103c7.784 24.293 30.355 41.971 57.115 42.465-20.926 16.402-47.287 26.171-75.937 26.171-4.929 0-9.798-.28-14.584-.846 27.059 17.344 59.189 27.464 93.722 27.464"/&amp;gt;&amp;lt;/svg&amp;gt;

const facebookIcon = &amp;lt;svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"&amp;gt;&amp;lt;path d="M15.12,5.32H17V2.14A26.11,26.11,0,0,0,14.26,2C11.54,2,9.68,3.66,9.68,6.7V9.32H6.61v3.56H9.68V22h3.68V12.88h3.06l.46-3.56H13.36V7.05C13.36,6,13.64,5.32,15.12,5.32Z"/&amp;gt;&amp;lt;/svg&amp;gt;

const instagramIcon =&amp;lt;svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"&amp;gt;&amp;lt;path d="M12,9.52A2.48,2.48,0,1,0,14.48,12,2.48,2.48,0,0,0,12,9.52Zm9.93-2.45a6.53,6.53,0,0,0-.42-2.26,4,4,0,0,0-2.32-2.32,6.53,6.53,0,0,0-2.26-.42C15.64,2,15.26,2,12,2s-3.64,0-4.93.07a6.53,6.53,0,0,0-2.26.42A4,4,0,0,0,2.49,4.81a6.53,6.53,0,0,0-.42,2.26C2,8.36,2,8.74,2,12s0,3.64.07,4.93a6.86,6.86,0,0,0,.42,2.27,3.94,3.94,0,0,0,.91,1.4,3.89,3.89,0,0,0,1.41.91,6.53,6.53,0,0,0,2.26.42C8.36,22,8.74,22,12,22s3.64,0,4.93-.07a6.53,6.53,0,0,0,2.26-.42,3.89,3.89,0,0,0,1.41-.91,3.94,3.94,0,0,0,.91-1.4,6.6,6.6,0,0,0,.42-2.27C22,15.64,22,15.26,22,12S22,8.36,21.93,7.07Zm-2.54,8A5.73,5.73,0,0,1,19,16.87,3.86,3.86,0,0,1,16.87,19a5.73,5.73,0,0,1-1.81.35c-.79,0-1,0-3.06,0s-2.27,0-3.06,0A5.73,5.73,0,0,1,7.13,19a3.51,3.51,0,0,1-1.31-.86A3.51,3.51,0,0,1,5,16.87a5.49,5.49,0,0,1-.34-1.81c0-.79,0-1,0-3.06s0-2.27,0-3.06A5.49,5.49,0,0,1,5,7.13a3.51,3.51,0,0,1,.86-1.31A3.59,3.59,0,0,1,7.13,5a5.73,5.73,0,0,1,1.81-.35h0c.79,0,1,0,3.06,0s2.27,0,3.06,0A5.73,5.73,0,0,1,16.87,5a3.51,3.51,0,0,1,1.31.86A3.51,3.51,0,0,1,19,7.13a5.73,5.73,0,0,1,.35,1.81c0,.79,0,1,0,3.06S19.42,14.27,19.39,15.06Zm-1.6-7.44a2.38,2.38,0,0,0-1.41-1.41A4,4,0,0,0,15,6c-.78,0-1,0-3,0s-2.22,0-3,0a4,4,0,0,0-1.38.26A2.38,2.38,0,0,0,6.21,7.62,4.27,4.27,0,0,0,6,9c0,.78,0,1,0,3s0,2.22,0,3a4.27,4.27,0,0,0,.26,1.38,2.38,2.38,0,0,0,1.41,1.41A4.27,4.27,0,0,0,9,18.05H9c.78,0,1,0,3,0s2.22,0,3,0a4,4,0,0,0,1.38-.26,2.38,2.38,0,0,0,1.41-1.41A4,4,0,0,0,18.05,15c0-.78,0-1,0-3s0-2.22,0-3A3.78,3.78,0,0,0,17.79,7.62ZM12,15.82A3.81,3.81,0,0,1,8.19,12h0A3.82,3.82,0,1,1,12,15.82Zm4-6.89a.9.9,0,0,1,0-1.79h0a.9.9,0,0,1,0,1.79Z"/&amp;gt;&amp;lt;/svg&amp;gt;






const Footer = ({footer}) =&amp;gt; {
    return (
       &amp;lt;&amp;gt;
        &amp;lt;div className="PreFooter"&amp;gt;
            &amp;lt;div&amp;gt;
                {repeatIcon}
                 &amp;lt;p&amp;gt; &amp;lt;b&amp;gt;Hassle-free replacement&amp;lt;/b&amp;gt; &amp;lt;br/&amp;gt;10-day easy replacement policy on mi.com&amp;lt;/p&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;{shieldIcon} &amp;lt;p&amp;gt; &amp;lt;b&amp;gt;100% secure payments&amp;lt;/b&amp;gt; &amp;lt;br/&amp;gt; We support Cards, Wallets, EMI and COD&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;{mapIcon} &amp;lt;p&amp;gt; &amp;lt;b&amp;gt;Vast service network&amp;lt;/b&amp;gt; &amp;lt;br/&amp;gt; 1000 Mi service-centers across 600 cities&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

        &amp;lt;div className="PreFooter2"&amp;gt;
             &amp;lt;div&amp;gt; &amp;lt;p&amp;gt;LET'S STAY IN TOUCH&amp;lt;/p&amp;gt;&amp;lt;span&amp;gt;Get updates on sales specials and more&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;

             &amp;lt;div&amp;gt;
                 &amp;lt;div&amp;gt;
                     &amp;lt;input type="email" name="email" placeholder="Enter Email Address" /&amp;gt;
                     &amp;lt;button&amp;gt;›&amp;lt;/button&amp;gt;
                 &amp;lt;/div&amp;gt;
                 &amp;lt;span&amp;gt;Thanks. You're on our email list for special offers.&amp;lt;/span&amp;gt;
             &amp;lt;/div&amp;gt;

             &amp;lt;div&amp;gt;
                    &amp;lt;p&amp;gt;FOLLOW MI&amp;lt;/p&amp;gt;
                    &amp;lt;span&amp;gt;We want to hear from you!&amp;lt;/span&amp;gt;
             &amp;lt;/div&amp;gt;

             &amp;lt;div&amp;gt;
                {facebookIcon} {youtubeIcon} {instagramIcon} {twitterIcon} 
             &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

        &amp;lt;div className="footer"&amp;gt;
                  &amp;lt;div&amp;gt; 
                     &amp;lt;p&amp;gt; SUPPORT&amp;lt;/p&amp;gt;
                      {footer.support.map((item,index)=&amp;gt;(
                         &amp;lt;a key={item.url} href={item.url}&amp;gt;{item.name}&amp;lt;/a&amp;gt;

                      ))}
                  &amp;lt;/div&amp;gt;

                  &amp;lt;div&amp;gt;
                 &amp;lt;p&amp;gt; SHOP AND LEARN&amp;lt;/p&amp;gt;
                  {footer.shopAndLearn.map((item,index)=&amp;gt;(
                         &amp;lt;a key={item.url} href={item.url}&amp;gt;{item.name} &amp;lt;/a&amp;gt;

                      ))}

                  &amp;lt;/div&amp;gt;
                  &amp;lt;div&amp;gt;
                   &amp;lt;p&amp;gt; RETAIL STORE&amp;lt;/p&amp;gt;
                    {footer.retailStore.map((item,index)=&amp;gt;(
                         &amp;lt;a key={item.url} href={item.url}&amp;gt;{item.name}&amp;lt;/a&amp;gt;

                      ))}
                  &amp;lt;/div&amp;gt;

                  &amp;lt;div&amp;gt;
                           &amp;lt;p&amp;gt;  ABOUT&amp;lt;/p&amp;gt;
                             {footer.aboutUS.map((item,index)=&amp;gt;(
                         &amp;lt;a key={item.url} href={item.url}&amp;gt;{item.name}&amp;lt;/a&amp;gt;

                      ))}
                  &amp;lt;/div&amp;gt;

                  &amp;lt;div&amp;gt;
                 &amp;lt;p&amp;gt; CONTACT US&amp;lt;/p&amp;gt;
                  {footer.contactUs.map((item,index)=&amp;gt;(
                         &amp;lt;a key={item.url} href={item.url}&amp;gt;{item.name}&amp;lt;/a&amp;gt;

                      ))}
                  &amp;lt;/div&amp;gt;

                  &amp;lt;div&amp;gt;
                      &amp;lt;div&amp;gt;Chat with our Virtual AI Bot(24/7 Live Agent Support)&amp;lt;/div&amp;gt;&amp;lt;button&amp;gt;CHAT NOW&amp;lt;/button&amp;gt;
                  &amp;lt;/div&amp;gt;



        &amp;lt;/div&amp;gt;
        &amp;lt;div className="footerBorder"&amp;gt;
       &amp;lt;div&amp;gt; Copyright © 2010 - 2021 Xiaomi. All Rights Reserved&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

       &amp;lt;/&amp;gt;
    )
}

export default Footer

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

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Since the code of the footer was too long so attached its code here for reference and I will use the code snippits from it to explain&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--W1aVKojv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9pag3mdsh0tkm2s0ka9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--W1aVKojv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9pag3mdsh0tkm2s0ka9r.png" alt="Image description" width="877" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 2 and 3&lt;/strong&gt; since the file is big so used two different css files to style the footer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 6 to 23&lt;/strong&gt; stored the SVG icons in the variables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---2bBjTIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rqhjb8b982qo7tzuizz1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---2bBjTIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rqhjb8b982qo7tzuizz1.png" alt="Image description" width="795" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 30&lt;/strong&gt; received the data coming from &lt;strong&gt;App.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PreFooter&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 32&lt;/strong&gt; since our footer has 3 parts so we will use three main divs &lt;strong&gt;"PreFooter", "PreFooter2" and "Footer"&lt;/strong&gt; so inorder to wrap them we used this syntactic sugar format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 33 to 40&lt;/strong&gt; we made a &lt;strong&gt;PreFooter&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dvyXJhBP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/blvcjvwog7liqbiif0xh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dvyXJhBP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/blvcjvwog7liqbiif0xh.png" alt="Image description" width="880" height="124"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above fig we can see that our &lt;strong&gt;PreFooter&lt;/strong&gt; has three sections &lt;strong&gt;"Hassle free replacement", "100% Secure Payment" and "Vast service network"&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PreFooter2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QQkAoL-G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rvz7bsz1puu4flldhw8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QQkAoL-G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rvz7bsz1puu4flldhw8.png" alt="Image description" width="880" height="99"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9s5cfBvk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m31k8i5xf2n7vr4fmfh3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9s5cfBvk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m31k8i5xf2n7vr4fmfh3.png" alt="Image description" width="753" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 42 to 61&lt;/strong&gt; made prefooter2 using input field and all the icons we imported.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ES2Cqi_m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h6mogv4bj98uxja1momx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ES2Cqi_m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h6mogv4bj98uxja1momx.png" alt="Image description" width="825" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you move to the browser it will look like this let's style them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Since we already imported the CSS files for both PreFooter and Footer so just add codes to the PreFooter file.&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;PreFooter2&lt;/strong&gt; &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Add the following CSS to the &lt;strong&gt;PreFooter.CSS&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;.PreFooter{
    margin: 5vmax 0 0 0;
    background-color: white;
    padding: 1vmax;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
}

.PreFooter &amp;gt; div{
    align-items: center;
    justify-content: center;
    display: flex;
    color:rgba(66, 66, 66, 0.829);
cursor: pointer;
}
.PreFooter &amp;gt; div:hover svg{
fill: rgb(34, 34, 34);
}
.PreFooter &amp;gt; div:hover p{
    color: rgb(19, 18, 18);
}


.PreFooter svg{
   transform: scale(2) translateY(-0.2vmax);
   fill: rgba(37, 37, 37, 0.322);
  margin: 2vmax;

}


/* --------------------PRE FOOTER 2---------- */


.PreFooter2{
    display: grid;
    height: 150px;
    grid-template-columns: repeat(4,1fr); 
  }

  .PreFooter2 &amp;gt; div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .PreFooter2 &amp;gt; div &amp;gt; p{
    color: rgba(0, 0, 0, 0.842);
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size:1.5vmax;
    width: 18vmax;
    margin: 0% ;
  }
  .PreFooter2 &amp;gt; div &amp;gt; span{
    color: rgba(51, 51, 51, 0.842);
    width: 18vmax;
    font-size:1vmax;
  }

  .PreFooter2 &amp;gt; div &amp;gt; div &amp;gt; input{
    border: none;
    outline: none;
    padding: 0.5vmax 1vmax;
    background-color: rgb(255, 255, 255);
    font-size: 1vmax;

    width: 20.4vmax;
  }
  .PreFooter2 &amp;gt; div &amp;gt; div &amp;gt; button{
    border: none;
    padding: 0.5vmax;
    background-color: rgb(255, 255, 255);
    outline: none;
  }
  .PreFooter2 &amp;gt; div &amp;gt; div{
  border: 1px solid rgba(126, 126, 126, 0.493);
  }

  .PreFooter2 &amp;gt; div:nth-child(2) &amp;gt; span{
    width: 22vmax;
  }


  .PreFooter2 &amp;gt; div:nth-child(3){
    justify-content: center;
    align-items:flex-end;
  }

  .PreFooter2 &amp;gt; div:nth-child(3) &amp;gt; p{
    width: 14vmax;
  }

  .PreFooter2 &amp;gt; div:nth-child(3) &amp;gt; span{
    width: 14vmax;
  }
  .PreFooter2 &amp;gt; div:nth-child(4) {
    flex-direction: row;
  }
  .PreFooter2 &amp;gt; div:nth-child(4) &amp;gt; svg{
    cursor: pointer;
    margin: 1vmax;
    fill: rgba(138, 138, 138, 0.705);
  }
  .PreFooter2 &amp;gt; div:nth-child(4) &amp;gt; svg:hover{
    fill: rgb(94, 94, 94);
  }

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

&lt;/div&gt;



&lt;p&gt;And now if you move to the browser it will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--peuI0cmR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sgmrza12z9edckznnzv3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--peuI0cmR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sgmrza12z9edckznnzv3.png" alt="Image description" width="880" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lets start working on the &lt;strong&gt;Footer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DpSUVMgg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zfrusp3hnmqac3i3p2c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DpSUVMgg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zfrusp3hnmqac3i3p2c.png" alt="Image description" width="880" height="654"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uw3LSyHl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qbr2v24twlvc61qq5pcc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uw3LSyHl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qbr2v24twlvc61qq5pcc.png" alt="Image description" width="812" height="870"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sKCMx4iH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c9ey776kgvvdtz5ord1w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sKCMx4iH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c9ey776kgvvdtz5ord1w.png" alt="Image description" width="805" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before discussing about the above code let's have a look on the data.json.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Rmg-hdX7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tlnx5xlpt9c2j15otiwd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rmg-hdX7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tlnx5xlpt9c2j15otiwd.png" alt="Image description" width="862" height="913"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here you can see that footer is an object and has some array of datas for &lt;strong&gt;support, shop and learn, retail store etc&lt;/strong&gt; so footer will consist that much section.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 64 to 70&lt;/strong&gt; made the support section of the footer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 72 to 79&lt;/strong&gt; made the shop and learn section of the footer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 80 to 86&lt;/strong&gt; made the retail store section of the footer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 88 to 94&lt;/strong&gt; made the About section of the footer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 96 to 102&lt;/strong&gt; made the Contact Us section of the footer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 104 to 106&lt;/strong&gt; made the Chat Now button with some text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Line 110 to 112&lt;/strong&gt;  a border and the copyright message.&lt;/p&gt;

&lt;p&gt;Now if you move to the browser it will look some thing like this let's design them.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.footer{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2fr;
    padding: 4.5vmax;
    background-color: rgb(37, 37, 37);
    color: rgb(197, 197, 197);
}

.footer &amp;gt; div{
    margin:1vmax;
    display: flex;
    flex-direction: column;

}

.footer &amp;gt; div:nth-child(2){
    display: block;
}
.footer &amp;gt; div:nth-child(2) &amp;gt;a{
        display: inline-block;

}
.footer &amp;gt; div &amp;gt; a{
    color: rgb(197, 197, 197);
    font-size: 1vmax;
    text-decoration: none;
    margin: 0.6vmax 0;
}

.footer &amp;gt; div &amp;gt; a:hover{
    color: white;
}


.footer &amp;gt; div:last-child &amp;gt;div{
    width: 45%;
    margin: 1vmax 0;
    font-size: 0.8vmax;
}

.footer &amp;gt; div:last-child &amp;gt;button{
width: 50%;
border:1px solid white;
background-color: rgb(37, 37, 37);
color: white;
padding: 0.6vmax 0;
font-size: 0.98vmax;
font-weight: 100;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
transition: all 0.5s;
}

.footer &amp;gt; div:last-child &amp;gt;button:hover{
    background-color: rgb(248, 244, 244);
    color: rgb(37, 37, 37);
}

.footerBorder{
    background-color:   rgb(37, 37, 37)  ; 
    color: white;

}
.footerBorder &amp;gt;div{
    border-top: 1px solid rgba(197, 197, 197, 0.185) ;
    color: rgb(197, 197, 197);
    width: 90vmax;
    margin: auto;
    padding: 2vmax;
   font-size: 0.98vmax;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add this &lt;strong&gt;CSS Code&lt;/strong&gt; to &lt;strong&gt;Footer.Css&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OxvAIML8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pibg6e6pkfby7vgqg070.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OxvAIML8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pibg6e6pkfby7vgqg070.png" alt="Image description" width="880" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now it will look like this in the browser. &lt;/p&gt;

</description>
      <category>react</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>SASS or SCSS for beginners.</title>
      <dc:creator>hrb11182</dc:creator>
      <pubDate>Tue, 05 Apr 2022 15:22:54 +0000</pubDate>
      <link>https://dev.to/hrb11182/sass-or-scss-for-beginners-481f</link>
      <guid>https://dev.to/hrb11182/sass-or-scss-for-beginners-481f</guid>
      <description>&lt;h2&gt;
  
  
  SCSS vs SASS -
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;In order to understand each and everything you need to have knowledge of CSS&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;SASS (Syntactically Awesome Style Sheets) is a pre-processor scripting language that will be compiled or interpreted into CSS. Sass Script is itself a scripting language whereas SCSS is the main syntax for the SASS which builds on top of the existing CSS syntax.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In CSS3 we call SASS as SCSS.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We are going to use VS code so install it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once done install the extension shown below.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4VAVm8_i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cspf5y2319w9glp6b63n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4VAVm8_i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cspf5y2319w9glp6b63n.png" alt="Image" width="427" height="98"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Once you are done with the installation of that extension you will be able to see a button at the bottom of your editor's screen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SRh4oP6u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7srs1f2db50t1njhbj0j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SRh4oP6u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7srs1f2db50t1njhbj0j.png" alt="Image" width="567" height="90"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now let's have a look at the folder structure you need to maintain to work with the SCSS.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9EVeFN0v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8or1i37k07kgbrhd0aad.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9EVeFN0v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8or1i37k07kgbrhd0aad.png" alt="Image" width="343" height="137"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Now click on that button on the bottom about which we talked earlier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This will compile your SCSS code to the normal CSS code because the browser won't be able to understand SCSS that's why we need a compiler.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;And after compilation, your folder structure will change and you get a CSS file too in your folder.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7aopw341--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vrt65n5kuvamvm3x2lp1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7aopw341--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vrt65n5kuvamvm3x2lp1.png" alt="Image" width="241" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This was the setup and some basics you need to be aware of.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Since you all are aware of CSS so let's have a look at the feature which makes it different from CSS3&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1- Use of operators -
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RPDj-6-g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cmmif9bp0uyjie53no30.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RPDj-6-g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cmmif9bp0uyjie53no30.png" alt="Image" width="512" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Here we used the "+" sign to add two values so here is what will happen? actually, they are going to behave like "10rem".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you visit your compiled CSS file there you will get something like this.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BCVhBU5e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bnpq97jo28jdjyo0cy2d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BCVhBU5e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bnpq97jo28jdjyo0cy2d.png" alt="Image" width="616" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Similarly we can use "*", "/", "-" too.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2 - SASS Variables -
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Now variables are included in CSS too.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Syntax to declare a variable in SCSS.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CqRFR0LH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2euys6z68gniwk2nm5x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CqRFR0LH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2euys6z68gniwk2nm5x.png" alt="Image" width="487" height="79"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Dollar sign variable name and then its value.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9bEbqhM0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s623ucfum3oo6dbfl91j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9bEbqhM0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s623ucfum3oo6dbfl91j.png" alt="Image" width="510" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;And it can be used like this.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3 - Nesting -
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;If any component has its child then they can be styled within their parent's syntax as shown below.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EPMcqTuS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x7dsh528lfwo2u480sg9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EPMcqTuS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x7dsh528lfwo2u480sg9.png" alt="Image" width="407" height="526"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We can take it a step further.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MolYzhum--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k7rez5swiokzcnzipasa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MolYzhum--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k7rez5swiokzcnzipasa.png" alt="Image" width="544" height="519"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  or
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EOXEbjCk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aimug0g3l6fwwp08948g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EOXEbjCk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aimug0g3l6fwwp08948g.png" alt="Image" width="491" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4 - Mixin -
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Suppose you know that there is a property of CSS you gonna use for lots of time in this case mixin helps you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2HbmlK8s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xqvtt15ynwxuic6paw8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2HbmlK8s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xqvtt15ynwxuic6paw8.png" alt="Image" width="509" height="224"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--K-nLWmKh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5i31ofw3pgng3s3gdtmc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--K-nLWmKh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5i31ofw3pgng3s3gdtmc.png" alt="Image" width="502" height="275"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First defined and then used that property.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5 - Parameters -
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Now suppose we created a mixin of some common styles but their values need to be different in different places then we can pass a parameter in the mixin as shown below.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ec7iMm7X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1n6dkjvrqftwo3ae0q8q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ec7iMm7X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1n6dkjvrqftwo3ae0q8q.png" alt="Image" width="526" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now, whenever we use we just need to pass a parameter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1shdFcUE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ud67hmolq4gvn0njvxa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1shdFcUE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ud67hmolq4gvn0njvxa.png" alt="Image" width="559" height="223"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The order of parameters matters in the order in which parameters are defined their values need to be passed in the same order.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  6 - SCSS Partials-
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;It means that instead of writing all the styles on one page we can use different pages too, for example, we can use different pages for mixins, and variables and we can call them when required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RLkRvJJo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6ixd9daca6rihesiaco.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RLkRvJJo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6ixd9daca6rihesiaco.png" alt="Image" width="209" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Partials names should start from underscore so that compiler doesn't compile them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WMVeGpcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kcdsgtor4tat8xy4bv7u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WMVeGpcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kcdsgtor4tat8xy4bv7u.png" alt="Image" width="627" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FAgD6jj5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oo17zvip2zw3c34utggu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FAgD6jj5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oo17zvip2zw3c34utggu.png" alt="Image" width="688" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now let's see how we can get that partial files in our main CSS files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--h4YMGU_n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/psyfmekcrzk7iu78yy1z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h4YMGU_n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/psyfmekcrzk7iu78yy1z.png" alt="Image" width="539" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;At the top of your &lt;strong&gt;"main.scss"&lt;/strong&gt; file import them. ( we don't need to include the file extension and underscore here ).&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>scss</category>
      <category>sass</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Object Oriented Programming in C++.</title>
      <dc:creator>hrb11182</dc:creator>
      <pubDate>Sat, 02 Apr 2022 03:49:57 +0000</pubDate>
      <link>https://dev.to/hrb11182/object-oriented-programming-in-c-45j9</link>
      <guid>https://dev.to/hrb11182/object-oriented-programming-in-c-45j9</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Object Oriented Programing is a set, rules or ideas or a standard in programming which is used to solve the different real world problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  CLASS -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Classes are the building blocks of 0bject Oriented programming.&lt;/li&gt;
&lt;li&gt;It is a user defined datatype.&lt;/li&gt;
&lt;li&gt;Class should end with a semicolon else you get compile time error.&lt;/li&gt;
&lt;li&gt;It is just like a blueprint by using which we can create different instances of class also known as the objects.&lt;/li&gt;
&lt;li&gt;Below figure shows class in C++.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--l5MdRLkb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b9j8wdwuztoqgjkrmvyo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--l5MdRLkb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b9j8wdwuztoqgjkrmvyo.png" alt="Image" width="880" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;_Access modifiers-_There are three types of access modifiers in C++ public, private and protected.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1-Private-&lt;/strong&gt; Whatever is private to your class is not going to be accessible outside the the syntax shown in first figure is same as second because class everything inside the class is private by default so we need not to mention that private keyword. class everything inside the class is private by default.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Z3R57hr9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9l4d5ss7lioujo9hup0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z3R57hr9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9l4d5ss7lioujo9hup0.png" alt="Image" width="880" height="505"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xSE7p3JM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vltjru1amznxbzhevl3d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xSE7p3JM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vltjru1amznxbzhevl3d.png" alt="Image" width="880" height="543"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2-Public-&lt;/strong&gt; Whatever is public to your class will be accessible outside the class too.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--I2bH0Zt6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nyb89j2iu8v8x3a3e31e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--I2bH0Zt6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nyb89j2iu8v8x3a3e31e.png" alt="Image" width="880" height="482"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3-Protected-&lt;/strong&gt; It is similar to private in the sense that it cant be accessed outside the class unless with the help of a friend class, the difference is it can be accessed by any derived class or sub class. &lt;/p&gt;

&lt;h2&gt;
  
  
  OBJECT -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;An instance of a class . When a class is created no memory is allocated but when it is instantiated then memory is allocated.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Given fig shows an object of employee class with some values for the properties of the class (line 12 – 15).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XXZ_Tk6F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zyp1a5r9fyv4bhmp7hd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XXZ_Tk6F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zyp1a5r9fyv4bhmp7hd.png" alt="Image" width="880" height="679"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  CLASS METHODS -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Class methods are the functions belongs to the classes.&lt;/li&gt;
&lt;li&gt;It is used to add behavior to the objects.&lt;/li&gt;
&lt;li&gt;There are two ways to define them -:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Inside class –&lt;/strong&gt; In the given figure at line22 we are invoking that method “Introduce Yourself.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YQ5vG3Ka--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zt4iqdxbi3bkh8ff7uk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YQ5vG3Ka--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zt4iqdxbi3bkh8ff7uk.png" alt="Image" width="880" height="580"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Outside class –&lt;/strong&gt; In order to define a method outside the class you need to declare it inside the class then define it outside the class this is done by specifying the name of the class followed by the scope resolution “ : :” operator followed by the name of the method as mentioned in the given figure. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wRzrfSG8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bhftk9nmkymo7u2plxxl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wRzrfSG8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bhftk9nmkymo7u2plxxl.png" alt="Image" width="598" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  CONSTRUCTORS -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Constructor is a special member function/method of a class which initializes objects of the class.&lt;/li&gt;
&lt;li&gt;In C++ it is automatically called when object is created.&lt;/li&gt;
&lt;li&gt;Constructor has same name as the class itself.&lt;/li&gt;
&lt;li&gt;Constructor don’t have return type.&lt;/li&gt;
&lt;li&gt;If we don’t specify a constructor, C++ compiler generates a default constructor for us.&lt;/li&gt;
&lt;li&gt;Three types-: &lt;strong&gt;Default, Parameterized, Copy constructer&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Figure given below is an example of Parameterized constructor.&lt;/li&gt;
&lt;li&gt;In line 23 – 26 is our objects using constructor.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KOJBPFfG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/faged4dtvuorx0nv7x9y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KOJBPFfG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/faged4dtvuorx0nv7x9y.png" alt="Image" width="880" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The figure given below shows the example of copy constructor is a member method/function that initializes an object using another object of the same class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7v1IE-6q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ffyqsurp3vnh43dsvf4v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7v1IE-6q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ffyqsurp3vnh43dsvf4v.png" alt="Image" width="531" height="588"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ENCAPSULATION -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In normal terms Encapsulation is defined as wrapping up of data and information under a single unit. In Object Oriented Programming, Encapsulation is defined as binding together the data and the functions that manipulates them here in the given figure we can see that now our properties / data are private (Name, Company and Age) and they can be only accessed and modified by using different methods (Getter and Setter) and figure 2 shows that how we can access and modify our data using getter and setter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nk24HiIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xtjr7sl7xb3go02ugjy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nk24HiIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xtjr7sl7xb3go02ugjy.png" alt="Image" width="618" height="431"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ambSPcdq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sq3hn97wda3qtxm1w4fy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ambSPcdq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sq3hn97wda3qtxm1w4fy.png" alt="Image" width="645" height="84"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Since the properties cant be changed directly the only way is using getters and setters so we can add some validation or some check in our function so that no one can exploit our properties or data this is why encapsulation is done as shown in the figure here age will be only modified if its value meets the specified condition.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vuWdXndV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8t623ca27ved2uh85fny.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vuWdXndV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8t623ca27ved2uh85fny.png" alt="Image" width="353" height="95"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ABSTRACTION-
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Abstraction means displaying only essential information and hiding the details. Data abstraction refers to providing only essential information about the data to the outside world, hiding the background details or implementation consider the pow() method present in math.h header file. Whenever we need to calculate power of a number, we simply call the function pow() present in the math.h header file and pass the numbers as arguments without knowing the underlying algorithm according to which the function is actually calculating power of numbers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the given figures we just initialized our abstract class from line 4-6 we associated that class to our employee class line 8 now employee class can define the behaviour of that abstract class and objects can use it without knowing that what is going behind the scenes.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6TWbrdoU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/habfk25gqexlq475fkm8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6TWbrdoU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/habfk25gqexlq475fkm8.png" alt="Image" width="554" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZcSPlfCg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8yf10ftbromy9rnxiqce.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZcSPlfCg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8yf10ftbromy9rnxiqce.png" alt="Image" width="659" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O9zrNj4w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/viri3ekkuhv23hijef4x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O9zrNj4w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/viri3ekkuhv23hijef4x.png" alt="Image" width="614" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Difference between Encapsulation and Abstraction -
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hTLd_tIy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/93dnmz8ktcqqmf1vdgdk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hTLd_tIy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/93dnmz8ktcqqmf1vdgdk.png" alt="Image" width="640" height="543"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  INHERITANCE -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The capability of a class to derive properties and characteristics from another class is called Inheritance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sub Class:&lt;/strong&gt; The class that inherits properties from another class is called Sub class or Derived Class.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Super Class:&lt;/strong&gt; The class whose properties are inherited by sub class is called Base Class or Super class.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GkBmL0Ir--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0lc6q36557nvb0p5mdnd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GkBmL0Ir--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0lc6q36557nvb0p5mdnd.png" alt="Image" width="459" height="80"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In this figure we created a new class “Developer” which is inheriting from the class employee.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QIUT-LMH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7q6ep1fr1pp2uj3f2y9c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QIUT-LMH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7q6ep1fr1pp2uj3f2y9c.png" alt="Image" width="598" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now when we tried creating the object of class “Developer” then we got an error because we don’t have any constructor for the class “Developer” and default constructor also can’t work here because we inherited from the class employee where we used constructor so some property of developer class has constructor.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M1C-Sf9W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dwyn7yem9jw0blxwgddc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M1C-Sf9W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dwyn7yem9jw0blxwgddc.png" alt="Image" width="655" height="102"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now we have defined constructor for the Developer class too and passed all the parameters of his own as well as of the parent class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5bOE93Sq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2hxy984a44sti4lypcs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5bOE93Sq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2hxy984a44sti4lypcs.png" alt="Image" width="649" height="164"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now in this figure we passed the three parameters which belongs to the base class to the base class constructor and Developer constructor just constructed the fourth attribute.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ipISrqOH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlrv2hwdnr54otqxewvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ipISrqOH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlrv2hwdnr54otqxewvi.png" alt="Image" width="564" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now we constructed the object of developer class and passed all the parameters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--owkJd9uo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5mpw89i5z1fu27afgg2r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--owkJd9uo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5mpw89i5z1fu27afgg2r.png" alt="Image" width="648" height="250"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In this figure we created a method of class developer here we are using getter function of our employee class in order to access the property of our base class because we can’t access it directly it is Private.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7WM-SsFv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n4ejjb30g7sc46f0t84k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7WM-SsFv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n4ejjb30g7sc46f0t84k.png" alt="Image" width="644" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It throws an error because name attribute of base class is private.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZHSsiek9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bn0qhkk81c8zc4b575jd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZHSsiek9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bn0qhkk81c8zc4b575jd.png" alt="Image" width="546" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now we can access it because it is protected and protected can be accessed by the child class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hJKogeFu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yrikst0meagh55lgdrtz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hJKogeFu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yrikst0meagh55lgdrtz.png" alt="Image" width="685" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;From the derived class we wont be able to access the abstract class / other extra properties of our base class because it is private by default so in order to make it accessible we need to make our inheritance public as done in line 53 of the above figure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--l1n1GC7x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oq1kxpzoci5hzg1di0w7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--l1n1GC7x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oq1kxpzoci5hzg1di0w7.png" alt="Image" width="616" height="737"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  POLYMORPHISM -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form.&lt;/li&gt;
&lt;li&gt;Most common use of polymorphism is when a parent class reference is used to refer to a child class object.&lt;/li&gt;
&lt;li&gt;A real-life example of polymorphism, a person at the same time can have different characteristics. Like a man at the same time is a father, a husband, an employee. so the same person posses different behaviour in different situations. This is called polymorphism.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6USsvsap--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qvdzasekdstu2ig5war.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6USsvsap--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qvdzasekdstu2ig5war.png" alt="Image" width="671" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We added a new function work to our employee class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Ixa2Z3e8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6sw2a06k1a1dm2thtjpa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Ixa2Z3e8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6sw2a06k1a1dm2thtjpa.png" alt="Image" width="633" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--htOPNMg1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/olmfcpacjyi2h8myd1sr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--htOPNMg1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/olmfcpacjyi2h8myd1sr.png" alt="Image" width="428" height="303"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calling the method of base class employee on the objects of different child classes “Developer and Teacher” second figure shows the output we get.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M_1hHaQJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0i71x20faf41lvqf3mz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M_1hHaQJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0i71x20faf41lvqf3mz.png" alt="Image" width="649" height="199"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8dLg-BTk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6gw9w3y126gykdneb7h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8dLg-BTk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6gw9w3y126gykdneb7h.png" alt="Image" width="672" height="208"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Here added the same method in both of the derived class but with different task in different child classes as compared to parent class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EPMlOqy5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nbwl2oi3wbh7n6o2ah0o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EPMlOqy5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nbwl2oi3wbh7n6o2ah0o.png" alt="Image" width="361" height="219"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After doing the changes shown above we got this output.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_Rp4Wl51--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lpz7lpnpzjt642f5i0ph.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_Rp4Wl51--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lpz7lpnpzjt642f5i0ph.png" alt="Image" width="609" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the above figure we made some changes instead of directly accessing the work we made the base class to point on the objects of derived class using reference and used pointers to access the method of base class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xbZT7ToY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ve38wf1nvspyazyiyx88.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xbZT7ToY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ve38wf1nvspyazyiyx88.png" alt="Image" width="431" height="209"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;By doing above changes you can see that our result changed because the pointers are pointing on the method of base class so when we execute our code that method will be called.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gOL1S3BS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iss1vt4bb1deqd081ya2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gOL1S3BS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iss1vt4bb1deqd081ya2.png" alt="Image" width="667" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In order to make them work perfectly we need to add “virtual” before the return type and the name of our method this virtual will tell the compiler (when it is called) that can you check that is there any other implementation of this method in our derived class if yes implement that else use this implementation as a default value. &lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Git &amp; Github...</title>
      <dc:creator>hrb11182</dc:creator>
      <pubDate>Sat, 02 Apr 2022 02:54:17 +0000</pubDate>
      <link>https://dev.to/hrb11182/git-github-3mmi</link>
      <guid>https://dev.to/hrb11182/git-github-3mmi</guid>
      <description>&lt;h2&gt;
  
  
  What is Git?
&lt;/h2&gt;

&lt;p&gt;Free and open source version control system.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is version control?
&lt;/h2&gt;

&lt;p&gt;The management of changes to documents, computer programs, large websites, and other collection of the information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Some of the useful commands -
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---FWt9bKi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc3oad3ov1hcn46g7444.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---FWt9bKi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc3oad3ov1hcn46g7444.png" alt="Some of the useful commands" width="880" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Some of the important terms to remember -
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--k-nbtBPJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rvsdysi2xd7q3884i5rz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--k-nbtBPJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rvsdysi2xd7q3884i5rz.png" alt="Some of the important terms to remember" width="880" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Github Introduction.
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;em&gt;Creating a new repository in Github.&lt;/em&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;We can create our new repo in github using the buttons highlighted in red and yellow.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Xv7Hud2U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nhqk17irmx7hpq5iksbv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Xv7Hud2U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nhqk17irmx7hpq5iksbv.png" alt="Image" width="880" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Once you click any one of the above mentioned buttons it will open a new window as shown below.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--baTR0Qy5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hx60008m5333pfodppih.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--baTR0Qy5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hx60008m5333pfodppih.png" alt="new repo form" width="880" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Name of repository.&lt;/li&gt;
&lt;li&gt;Its description.&lt;/li&gt;
&lt;li&gt;You can make your repo Public ( Anyone can access it) or Private (Only you can access).&lt;/li&gt;
&lt;li&gt;Create repo button. &lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Repo will look like this.&lt;/li&gt;
&lt;li&gt;Click on highlighted text to create the new file inside a repo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YHw1nRmv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p9t0qvhzpfvv89ra8mzd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YHw1nRmv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p9t0qvhzpfvv89ra8mzd.png" alt="repo look" width="880" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;New file window will look like this.&lt;/li&gt;
&lt;li&gt;Highlighted portion shows file name.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IvW9Yuln--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwrxameiwx163r6ewmyx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IvW9Yuln--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwrxameiwx163r6ewmyx.png" alt="Image" width="880" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After writing the code you will be asked to enter other details like &lt;strong&gt;1-&lt;/strong&gt; Commit Message (Is given during every commit ) &lt;strong&gt;2-&lt;/strong&gt; Description message.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YTI8bThG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zy47p3l310m48qapz9v2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YTI8bThG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zy47p3l310m48qapz9v2.png" alt="Image" width="880" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--s-atCt8i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ux24kdzljdxnfoyiz8kc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--s-atCt8i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ux24kdzljdxnfoyiz8kc.png" alt="Image" width="880" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Once committed the file or any change in file then it will look like this.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dL9FiDO2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4z5cfe9a99x12z0fyps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dL9FiDO2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4z5cfe9a99x12z0fyps.png" alt="Image" width="880" height="603"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--goquIkzL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8vwsipir91mg66108jem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--goquIkzL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8vwsipir91mg66108jem.png" alt="Image" width="880" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZwWtwppa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4p9t6ov5cwki5sm2bgm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZwWtwppa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4p9t6ov5cwki5sm2bgm.png" alt="Image" width="880" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--io21skbc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c1oa8d4dydg6bshjyvwe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--io21skbc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c1oa8d4dydg6bshjyvwe.png" alt="Image" width="880" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qFUTncbk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulxe6s5inuyupqfsd54z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qFUTncbk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulxe6s5inuyupqfsd54z.png" alt="Image" width="880" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Git - Cloning the repository-
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Visit any existing repository in github and follow the steps to clone the repo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q8oUPoYB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cnp93nr2vt574khpnr95.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q8oUPoYB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cnp93nr2vt574khpnr95.png" alt="Image" width="880" height="665"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1O3Bhzms--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1szjlxsn8ns8rtf906th.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1O3Bhzms--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1szjlxsn8ns8rtf906th.png" alt="Image" width="880" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OTF4JcLl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oue8v5yqhfg4ns7ba81o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OTF4JcLl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oue8v5yqhfg4ns7ba81o.png" alt="Image" width="626" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Since we cloned the repo in the demorepo so move in that repo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SIcCGUKD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0lvtohbfm7uyxd359hge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SIcCGUKD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0lvtohbfm7uyxd359hge.png" alt="Image" width="553" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nxVWlykF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/itfeew7mh4ovo7557t6l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nxVWlykF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/itfeew7mh4ovo7557t6l.png" alt="Image" width="505" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CLI will look some thing like this {Master will be mentioned in this or any other style which shows you are in master branch}. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Listing the hidden files.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gFKytpct--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ag5m1vio255c07ys178.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gFKytpct--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ag5m1vio255c07ys178.png" alt="Image" width="625" height="216"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8WWcI3IS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqjq5ssk6pkwvhrckp7f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8WWcI3IS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqjq5ssk6pkwvhrckp7f.png" alt="Image" width="594" height="218"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Both of this command is used to list all the files and folders (including hidden). &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Checking status of files.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JF2FqQBD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jhl69ex908iqzak0moj7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JF2FqQBD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jhl69ex908iqzak0moj7.png" alt="Image" width="727" height="194"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To check the status of file - Red means un tracked Green means staged.&lt;/li&gt;
&lt;li&gt;Gives the info about all the files ever created , deleted, untracked or committed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Stages of file.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lERr6sKu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kerlnqwluvx2ozt3lyb6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lERr6sKu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kerlnqwluvx2ozt3lyb6.png" alt="Image" width="837" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Un Tracked files –
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Initial stage of file.&lt;/li&gt;
&lt;li&gt;This files can’t be tracked by the git.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Staged –
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt; Those files are put in this stage which are going to be committed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Unmodified –
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;After staging area once the files are committed they come to this section.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;From here they can go in two direction:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the file is removed then it goes back to untracked.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If some changes are don then it goes too modified area.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Modified:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;From here files are send to the staged area.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Git commit-
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dK7xPHbQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9sedhfr2xqcck8f1r4ji.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dK7xPHbQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9sedhfr2xqcck8f1r4ji.png" alt="Image" width="880" height="593"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--468SQ2z7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nunxjtflghy71imgw8db.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--468SQ2z7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nunxjtflghy71imgw8db.png" alt="Image" width="721" height="235"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OZjRRK3x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vkyicylw9vm8ju860k21.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OZjRRK3x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vkyicylw9vm8ju860k21.png" alt="Image" width="880" height="207"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UN_T9mlI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b68xcpkh5dz5sd196lxw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UN_T9mlI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b68xcpkh5dz5sd196lxw.png" alt="Image" width="880" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  SSH Key -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;First generate SSH key to your own machine using the command shown below.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3RhvzbkQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3jcyhl8yuna32pf4sns8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3RhvzbkQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3jcyhl8yuna32pf4sns8.png" alt="Image" width="880" height="181"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ADYpVvky--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kr9jbi24j49xzw1b2vx2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ADYpVvky--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kr9jbi24j49xzw1b2vx2.png" alt="Image" width="876" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can rename your file / key name.&lt;/li&gt;
&lt;li&gt;And can put a password on that.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jJPc9XLF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j4p4e9llz3xc8vgrvn5r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jJPc9XLF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j4p4e9llz3xc8vgrvn5r.png" alt="Image" width="748" height="832"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is how key looks like.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nct7V7k3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ksxir2988skykxpro8w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nct7V7k3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ksxir2988skykxpro8w.png" alt="Image" width="526" height="140"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V1Hgu2t8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12xb49v6qd4v6oqkfov7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V1Hgu2t8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12xb49v6qd4v6oqkfov7.png" alt="Image" width="320" height="563"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to profile and then settings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0aFQxXQq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b8848uxubx6bvw1fjfer.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0aFQxXQq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b8848uxubx6bvw1fjfer.png" alt="Image" width="142" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to SSH and GPG Keys.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3psYnmv1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51yd34xe2ptwgy8rp3uz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3psYnmv1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51yd34xe2ptwgy8rp3uz.png" alt="Image" width="690" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Paste the key in box like mine pasted.&lt;/li&gt;
&lt;li&gt;When you will click on new SSH key this dialog box will open.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UcO9c41N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ue7mikys99f33a8x98ad.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UcO9c41N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ue7mikys99f33a8x98ad.png" alt="Image" width="612" height="358"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Git Push -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;If you remember in git commit section we committed index.html.&lt;/li&gt;
&lt;li&gt;Now we will push it to git hub.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZzSIACcZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xoqbegz7dxef2o75a2aq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZzSIACcZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xoqbegz7dxef2o75a2aq.png" alt="Image" width="638" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In above figure-:
      Location of our git repo set as default to origin. &lt;/li&gt;
&lt;li&gt;This was the command to push index.html to git hub.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oagCC-iB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0o8jywct4aeteul5w4mw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oagCC-iB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0o8jywct4aeteul5w4mw.png" alt="Image" width="650" height="47"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If we run this command then we never need to give origin and master(Means branch name Master in this case only it will change accordingly) we can only use git push to push it to git hub.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dQryAP8---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xc93j7f720jpdp7qa82u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dQryAP8---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xc93j7f720jpdp7qa82u.png" alt="Image" width="615" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Index .html to git hub.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Git Init -
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1EZm83-a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtk2o99igg6k3l5kf1rn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1EZm83-a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtk2o99igg6k3l5kf1rn.png" alt="Image" width="634" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Demo-repo2 is not a git repo.&lt;/li&gt;
&lt;li&gt;In order to make it a git repo we need to enter that folder. By following command.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Spc6-ylu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/31813t53sxd8rnfuiu0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Spc6-ylu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/31813t53sxd8rnfuiu0w.png" alt="Image" width="628" height="46"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;And run this command.&lt;/li&gt;
&lt;li&gt;Now it is a git repo and u are in master branch.&lt;/li&gt;
&lt;li&gt;In order to push it to git hub you need to make an empty repo on git hub.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PGHJSnly--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/88hdtrp81fh5eetxnaox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PGHJSnly--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/88hdtrp81fh5eetxnaox.png" alt="Image" width="622" height="412"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This dialog box will open.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NokyWEpF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/620kfbnkl3tgusc52sbt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NokyWEpF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/620kfbnkl3tgusc52sbt.png" alt="Image" width="622" height="80"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After creating the new repo copy the SSH key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DyF4Paoy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zyg75i9jhzvgybq5kers.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DyF4Paoy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zyg75i9jhzvgybq5kers.png" alt="Image" width="612" height="54"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;And run this command.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PQPsVIyc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xg3cf6zic2qu9zutc81.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PQPsVIyc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xg3cf6zic2qu9zutc81.png" alt="Image" width="646" height="80"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This command shows that this local repo is connected to which remote repo.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Work Flow of Git &amp;amp; Git hub -
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BnJGESIc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lno42gcgbhjezq6mpqw4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BnJGESIc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lno42gcgbhjezq6mpqw4.png" alt="Image" width="588" height="704"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Git Branching -
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O6gc6432--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/syo2c5qp8qvskr3ryjm5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O6gc6432--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/syo2c5qp8qvskr3ryjm5.png" alt="Image" width="572" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Three types-:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Master Branch-&lt;/strong&gt;Master branch is the main branch having main code of the project which is the best in present time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Feature Branch-&lt;/strong&gt;This branches are made to build and test some new features, Once we are confident with that feature we merge it to the main branch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Hot Fix Branch-&lt;/strong&gt;This branch is made to fix some bugs in the main program.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Command to check the number of branches of the git repository -&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x1AGz3UH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wmgjfldxgk2fnussyal5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x1AGz3UH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wmgjfldxgk2fnussyal5.png" alt="Image" width="651" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cNsVFm9D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ag85w5j85geafb8pvej3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cNsVFm9D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ag85w5j85geafb8pvej3.png" alt="Image" width="219" height="109"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It has only master branch now.&lt;/li&gt;
&lt;li&gt;Star denotes that we are currently on this branch.
&lt;strong&gt;&lt;em&gt;Need to hit "q" in order to come out of this window.&lt;/em&gt;&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--g2Y_j7Ff--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1bkqg3tlt2htx8ve60k9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g2Y_j7Ff--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1bkqg3tlt2htx8ve60k9.png" alt="Image" width="648" height="45"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Command to create a new branch.&lt;/li&gt;
&lt;li&gt;Feature denotes the name we can use according to our requirements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jw0R4hfw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/730af1amxre1zzfqajxe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jw0R4hfw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/730af1amxre1zzfqajxe.png" alt="Image" width="654" height="25"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This command is used to differentiate between master and the branch name specified.&lt;/li&gt;
&lt;li&gt;You need to run it from master branch and u can go there by checkout command.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RF3uCZ4C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/thplkgmsboq2k5y3zkpf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RF3uCZ4C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/thplkgmsboq2k5y3zkpf.png" alt="Image" width="654" height="308"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The UI of the same has been discussed above.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gure9CbA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11b9c9238ddthexgtduh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gure9CbA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11b9c9238ddthexgtduh.png" alt="Image" width="455" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command to merge any branch to the main branch of the repo.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uUyWRJqU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sh22usd71jgqfsefthia.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uUyWRJqU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sh22usd71jgqfsefthia.png" alt="Image" width="638" height="33"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Pull Request-
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;In this fig the branch is just pushed to git hub not merged with the Main branch.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uLq51bjA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/68otvj1t18gsl6oxmlw6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uLq51bjA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/68otvj1t18gsl6oxmlw6.png" alt="Image" width="721" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DdAhjHIL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/69x1z07qyg9wtsiz2mkx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DdAhjHIL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/69x1z07qyg9wtsiz2mkx.png" alt="Image" width="586" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VlT2gWM7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r1s7aivglh3e2wj7uq1g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VlT2gWM7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r1s7aivglh3e2wj7uq1g.png" alt="Image" width="554" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NJBsOzyW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7papq79rzkd3m6mf1sa3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NJBsOzyW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7papq79rzkd3m6mf1sa3.png" alt="Image" width="541" height="224"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0LZdg0u0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b37hvf19bfa03cbjqyxv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0LZdg0u0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b37hvf19bfa03cbjqyxv.png" alt="Image" width="500" height="313"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Just below merge pull request button is given to merge after fixing the bug.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;This changes are done in git hub we need to bring this changes to our local machine we can do it by this command.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XtYo3Vfb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sqlesrzoa6n2dnkv7vus.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XtYo3Vfb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sqlesrzoa6n2dnkv7vus.png" alt="Image" width="493" height="27"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Since we merged the features to the master branch so we need to delete that feature branch.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qMnUxTRw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ciix0418odk8bqi1t32o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qMnUxTRw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ciix0418odk8bqi1t32o.png" alt="Image" width="495" height="20"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We can do it by this command.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Merge Conflicts-
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A merge conflict is an event that takes place when Git is unable to automatically resolve differences in code between two commits. Git can merge the changes automatically only if the commits are on different lines or branches.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tEdLE309--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u0c384rp5xt2ec295tpe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tEdLE309--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u0c384rp5xt2ec295tpe.png" alt="Image" width="486" height="111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;When we modified the file then instead of moving it to stage area we can directly commit it using this command. {only for modified files which were committed previously}.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After solving the merge conflicts you need to commit the file again it doesn’t matter that u changed something in file or not .&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Un Doing in git-
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vOpDo_J2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/edw094hxus84v1uly3n9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vOpDo_J2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/edw094hxus84v1uly3n9.png" alt="Image" width="478" height="34"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This command reset the previously done staging on file name specified.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DV8gaCaS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/adbcewnqt1stzc96649o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DV8gaCaS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/adbcewnqt1stzc96649o.png" alt="Image" width="468" height="30"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This will also do the same thing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VY-pMCsh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hsfplrba934vy627il0m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VY-pMCsh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hsfplrba934vy627il0m.png" alt="Image" width="479" height="30"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is to reset last commit.&lt;/li&gt;
&lt;li&gt;Here HEAD is a pointer which tells that we need to reset 1 commit or go 1 commit back.&lt;/li&gt;
&lt;li&gt;So in order to un do lots of commits we need to use the commit code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hmBXDTYn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jpgbov60pepxnpd8br0n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hmBXDTYn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jpgbov60pepxnpd8br0n.png" alt="Image" width="452" height="26"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To get the log of every commit made on that branch.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---mBthtj1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z3nvlwl3y4tk5lbrmh7z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---mBthtj1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z3nvlwl3y4tk5lbrmh7z.png" alt="Image" width="500" height="293"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This will show up all the previous commits copy the code of the commit.&lt;/li&gt;
&lt;li&gt;In order to scroll down use space bar and q to quit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9zgSP60d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vx65xtdypeb7yujut2p0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9zgSP60d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vx65xtdypeb7yujut2p0.png" alt="Image" width="499" height="30"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This will undo all the commits done after this specified commit but this commit remain untouched.&lt;/li&gt;
&lt;li&gt;This commands unstage the commit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bfwDSZFJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8t7ef7ug7embal762rjv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bfwDSZFJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8t7ef7ug7embal762rjv.png" alt="Image" width="499" height="27"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This will not unstage the commit it will remove them completely.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eiWKzUr9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/crrgewfzbbbhjg8wpjfi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eiWKzUr9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/crrgewfzbbbhjg8wpjfi.png" alt="Image" width="358" height="53"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This command can be used to un stage the file.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Forking -
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Forking is a git clone operation executed on a server copy of a projects repo. ... You create a new feature branch in your local repo. Work is done to complete the new feature and git commit is executed to save the changes. You then push the new feature branch to your remote forked repo.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This is done to bring the whole repo to your own account not the branch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After making the desired changes we can create the pull request to accept the changes you made in the project.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
