React Shopping Cart in 2022 || Using Hooks and React Router

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.ค. 2021
  • In this video, You will learn to create a shopping cart using ReactJs.

ความคิดเห็น • 129

  • @LuksFay
    @LuksFay 2 ปีที่แล้ว +8

    Of all the videos I saw, this was the only one that helped me unlock the page I'm making. Thank you very much, very simple and well explained

  • @jamesr2408
    @jamesr2408 2 หลายเดือนก่อน +2

    @ 14:26 *Switch* has been replaced with Routes and Route syntax changed to: . Also passing the data from App to Routes to Products Component seems like a merry-go-round, when it can be pass directly in the Products component.

    • @solotamilan4061
      @solotamilan4061 15 วันที่ผ่านมา

      Same issue I faced two hours 😂

  • @martins203
    @martins203 2 ปีที่แล้ว

    Awesome! Your tutorial helped me a lot, thank you :D Hope, you make more videos like this in the future

  • @aaravgavshinde1296
    @aaravgavshinde1296 ปีที่แล้ว

    Such an amazing video. You are so underrated bro. Keep growing :)

  • @fangamer6666
    @fangamer6666 11 หลายเดือนก่อน

    thanks bro you helped a lot geneunally i cant explain how much time it took to create add to cart problem i was trying to do from 5 days finally it happened.

  • @maryamebadi94
    @maryamebadi94 2 ปีที่แล้ว

    it was really good,i learned alot from your video,thanks alot.💐

  • @mariaclarasimoes_
    @mariaclarasimoes_ 7 หลายเดือนก่อน

    Greetings from Brazil! Amazing video :)

  • @celticspyd5887
    @celticspyd5887 4 หลายเดือนก่อน

    sir i want to know If a customer clicks on order btn to order and the order list should received at the admins page/panel without any database or backend possible?? if yes how sir?

  • @saudbaig2633
    @saudbaig2633 ปีที่แล้ว

    Can I use this add to cart feature to mern stack web development?

  • @jacobzak7494
    @jacobzak7494 2 ปีที่แล้ว

    Cart clears when you reload the webpage. Why and how to prevent this?

  • @shashwattulsyan8522
    @shashwattulsyan8522 2 ปีที่แล้ว

    can you please make a separate tutorial for how to store fields and files in mongdb(MERN).

  • @jitendrakumarpatel2956
    @jitendrakumarpatel2956 ปีที่แล้ว

    Can someone please tell me whether context api is used in this video or other method ?

  • @reactjswithsid6779
    @reactjswithsid6779 2 ปีที่แล้ว

    thanks for this video and keep uploading such type of videos and try to upload a its backend using NODE js

  • @krazykalai5057
    @krazykalai5057 2 ปีที่แล้ว +1

    sir ur way of teaching is understable. please make more video about reacjs projects.

  • @saurav2409
    @saurav2409 ปีที่แล้ว

    hey guys correct me if m wrong, can we make a separate file for contextapi at 14:11 ,coz hhere i can a lot of prop drilling happenning

  • @De_Bryan
    @De_Bryan 2 ปีที่แล้ว +3

    Nice job. I am still new to the trade. Would be nice if you made a tutorial of the same with context api. Thumbs up!

    • @rldotaplays6565
      @rldotaplays6565 ปีที่แล้ว +1

      I would like to learn the one where you collect the product data from an API as well. There's not much tutorial about it. Most of it is just like this.

  • @tubeyou9007
    @tubeyou9007 ปีที่แล้ว

    Are you using redux in it?

  • @girishpandey9976
    @girishpandey9976 3 ปีที่แล้ว +2

    Thanks for your valuable project for us to make us more expert

    • @contentking55
      @contentking55  3 ปีที่แล้ว

      You are welcome. Please help us to grow by subscribing our channel. 😊

  • @SarathAppu-rd3xm
    @SarathAppu-rd3xm 5 หลายเดือนก่อน

    great one bro👍

  • @user-li4tj6zr6o
    @user-li4tj6zr6o 6 หลายเดือนก่อน

    very good effort to the point

  • @HeadbangingChannel
    @HeadbangingChannel ปีที่แล้ว +2

    Is there any source code to study this better

  • @saharabanu2699
    @saharabanu2699 2 ปีที่แล้ว

    It's really helpful.

  • @user-bv5io4pn3o
    @user-bv5io4pn3o ปีที่แล้ว

    setCartItems(...) is not a function I am getting this error in cart.js can anyone please solve my error

  • @sanabila_0970
    @sanabila_0970 ปีที่แล้ว

    love it!

  • @javicrowley
    @javicrowley 2 ปีที่แล้ว

    MASTER !!! thank u !!!

  • @01_lethanhan89
    @01_lethanhan89 2 ปีที่แล้ว

    Error: cartItems is not a function.
    Help me

  • @kunal9948
    @kunal9948 10 หลายเดือนก่อน

    I have problem my images are not displaying on the screen
    The names are displayed

  • @reactjswithsid6779
    @reactjswithsid6779 2 ปีที่แล้ว

    plz make a video for user Registration and sign in process in react js

  • @glitchy_midnight245
    @glitchy_midnight245 2 ปีที่แล้ว

    hi , Can I ask u a question plz

  • @NicolasCruzCarpio
    @NicolasCruzCarpio 2 ปีที่แล้ว +3

    Ahora Switch se usa como 'Routes' y products se usa asi:

  • @kalaiselvam5032
    @kalaiselvam5032 ปีที่แล้ว

    Error in ./src/components/front/Header/Header.js 5:0-40
    Module not found: Error: can't resolve 'react-router-dom' in 'E:
    eact project\myfirstproject\src\components\front\Header problem bro

  • @mehdihasan2827
    @mehdihasan2827 3 ปีที่แล้ว +5

    Buddy where is SignUp page??? Are you going to make a separate video??? Or you are not making it???? This video has helped me tremendously, hope to see more videos related to react js. Thank you. All the best for your upcoming videos.

    • @contentking55
      @contentking55  3 ปีที่แล้ว

      I've already made a video on signup form validation. You can check the video on th-cam.com/video/WvRwiE9IkFg/w-d-xo.html

  • @C_devops
    @C_devops ปีที่แล้ว

    can any one send the source code this plz i was getting error while doing this!

  • @arslanrana2468
    @arslanrana2468 2 ปีที่แล้ว

    Quantity??? Where it come from

  • @gayatripatil1524
    @gayatripatil1524 2 หลายเดือนก่อน

    Sir mere product shoe nahi ho rahe he browser me

  • @scarlatybonfim1461
    @scarlatybonfim1461 ปีที่แล้ว

    Thank you very much!!!!!!!!!!!!!!!!!!!! you are very necessary

  • @pranushanaika5258
    @pranushanaika5258 ปีที่แล้ว

    Products items are not showing me

  • @YashKumar-lq1ed
    @YashKumar-lq1ed 2 ปีที่แล้ว +6

    Sir source code milega kya

  • @arpitabanik6240
    @arpitabanik6240 2 ปีที่แล้ว

    Please provide me the source code repo link!! I need it badly!

  • @giorgikiladze1151
    @giorgikiladze1151 2 ปีที่แล้ว

    thank you was helpful

  • @venkatkosuri5224
    @venkatkosuri5224 2 ปีที่แล้ว +1

    Hi brother
    Can you please send me this source code link

  • @worldclasscode1847
    @worldclasscode1847 2 ปีที่แล้ว +1

    Great video! Where is the source code?

  • @gomathim9306
    @gomathim9306 2 ปีที่แล้ว +1

    Ji..is switch working..?
    Switch is renamed as Routes...Help me out,Ji?

    • @chemiyaki
      @chemiyaki 2 ปีที่แล้ว +1

      import { BrowserRouter, Routes, Route} from 'react-router-dom';




      //this one can change to Router if you import BrowserRouter as Router

  • @Varma_academy
    @Varma_academy 2 ปีที่แล้ว +5

    Sir pls give me the code

  • @daniele19888
    @daniele19888 ปีที่แล้ว

    really great video, just to avoid any kind of problems I would add the code for this project, by the way thanks a lot

    • @Adityasingh-cb5xt
      @Adityasingh-cb5xt ปีที่แล้ว

      I made a link and it's showing in URL. But it's not going to that page... But after typing in URL it's working. Can u help me out??

  • @bali208
    @bali208 ปีที่แล้ว

    Sir, thank you. Worked on your entire project. Getting output as expected. But having problem in displaying number of items in the cart icon. It is constantly showing as 9, even if I restart the application, it’s crazy. Cart items are fine. Working as expected. But only on the header icon it is constantly seen as 9. How to solve it?

    • @width19
      @width19 ปีที่แล้ว +1

      cart items is working fine? mine isnt, did you change anything in the handleAddProduct function?

    • @bali208
      @bali208 ปีที่แล้ว

      @@width19 now it's working. Had done a silly mistake.

    • @joelmathew903
      @joelmathew903 ปีที่แล้ว

      @@width19 yeah I’m having the same issue, as soon as I tried to implement the handleAddProduct my, cart page would go blank. Not sure what is wrong

    • @riyatomar3613
      @riyatomar3613 ปีที่แล้ว

      ​@@width19is ur error resolved??

  • @amandevs
    @amandevs ปีที่แล้ว

    Thank you 👍

  • @skimran8646
    @skimran8646 2 ปีที่แล้ว

    bro can you plz give me full code

  • @sanyamjain4777
    @sanyamjain4777 ปีที่แล้ว +1

    Hey make the same app with redux toolkit 🙏🙏

  • @safikarimi9623
    @safikarimi9623 ปีที่แล้ว

    Hi Sir
    Can you please send me this source code link

  • @muhammadrahman376
    @muhammadrahman376 2 ปีที่แล้ว +2

    bro! Please attach the source code to the videos

  • @streetmotivation
    @streetmotivation 2 ปีที่แล้ว

    sir please give we teaching react js

  • @kalaiselvam5032
    @kalaiselvam5032 ปีที่แล้ว

    Bro I have problem

  • @nzilaikouaramartsiamonange9707
    @nzilaikouaramartsiamonange9707 ปีที่แล้ว +1

    Merci infiniment 🙏🙏🙏

  • @ilyasjabir3121
    @ilyasjabir3121 ปีที่แล้ว

    can you share the whole code please

  • @kajalkumaribiswal8622
    @kajalkumaribiswal8622 2 ปีที่แล้ว +2

    plz give the source code,,,,

  • @cryptodev2615
    @cryptodev2615 2 ปีที่แล้ว +2

    I'd recommend in the future to just use a fake store api, instead of creating a hard coded backend and writing all that json for productsn

  • @kaushikjadav5824
    @kaushikjadav5824 11 หลายเดือนก่อน

    Source Code Link ?

  • @PavanKumar-by8dc
    @PavanKumar-by8dc 2 ปีที่แล้ว

    For me it's showing Switch is not found in react-router-dom , and also in react-router ??

    • @jacobzak7494
      @jacobzak7494 2 ปีที่แล้ว

      Yeah you should downgrade react-router-dom to version 5.2. npm install react-router-dom@5.2, but still it doesn't add items to cart

    • @PavanKumar-by8dc
      @PavanKumar-by8dc 2 ปีที่แล้ว

      @@jacobzak7494 yaa but in version 6 I'm using Browser router

    • @jacobzak7494
      @jacobzak7494 2 ปีที่แล้ว

      @@PavanKumar-by8dc So you need to make massive changes and it's very hard to accomplish because of the differencies between react versions

    • @width19
      @width19 ปีที่แล้ว +1

      @@jacobzak7494 yes, mine doesnt add items to cart after downgrading. Is that the issue? How were you able to add to cart?

  • @kerembabaoglu1265
    @kerembabaoglu1265 2 ปีที่แล้ว

    where is the source code

  • @kalpanas4218
    @kalpanas4218 2 ปีที่แล้ว

    This video is more helpful to me. Please make a video about search product, login and register in reactjs..
    Thank you so much for this helpful video😇

  • @sikkijackson715
    @sikkijackson715 ปีที่แล้ว

    I've never seen a tutorial where somebody speaks so less and i understand so much 🤫🤫🤫

    • @Adityasingh-cb5xt
      @Adityasingh-cb5xt ปีที่แล้ว

      I made a link and it's showing in URL
      But it's not going to that page... But after typing in URL it's working

    • @Adityasingh-cb5xt
      @Adityasingh-cb5xt ปีที่แล้ว

      Can u help me out?

    • @sikkijackson715
      @sikkijackson715 ปีที่แล้ว

      @@Adityasingh-cb5xt what do you mean with i made a link?

  • @sadashivmahadev
    @sadashivmahadev 8 หลายเดือนก่อน

    Very nice disgn plz send me source code

  • @kerembabaoglu1265
    @kerembabaoglu1265 2 ปีที่แล้ว

    ı need the source code

  • @manavpatel7976
    @manavpatel7976 2 ปีที่แล้ว +6

    Can you please provide git repository

    • @Varma_academy
      @Varma_academy 2 ปีที่แล้ว

      Bro...did you get the github link for this project???

  • @erdenetugs2958
    @erdenetugs2958 2 ปีที่แล้ว

    i need github source code

  • @shubhamaher5718
    @shubhamaher5718 ปีที่แล้ว

    code link

  • @ramanagarnepelli2280
    @ramanagarnepelli2280 2 ปีที่แล้ว +2

    byeee

  • @komaldagar8821
    @komaldagar8821 หลายเดือนก่อน

    use Switch Instead Of Routes

  • @benchmarks1016
    @benchmarks1016 2 ปีที่แล้ว

    30:05

  • @franciscokataldo3707
    @franciscokataldo3707 2 ปีที่แล้ว

    El ctm seco, gracias

  • @ajeeshsaju9566
    @ajeeshsaju9566 2 ปีที่แล้ว +2

    Product not adding to Cart plz help., someone who solve this issue

    • @ayushjain8016
      @ayushjain8016 2 ปีที่แล้ว

      have you find the solution?

    • @ayushjain8016
      @ayushjain8016 2 ปีที่แล้ว

      have you find the solution?

    • @jacobzak7494
      @jacobzak7494 2 ปีที่แล้ว

      @@ayushjain8016 I found! It's the fokin react version! u need to type npm install react@17.0.2 and also type npm install react-router-dom@5.2 and to type npm install react-dom 17.0.2
      Also write this in to your index.js file instead of what written there:
      import { StrictMode } from 'react';
      import { render } from 'react-dom';
      import App from './App';
      const rootElement = document.getElementById('root');
      render(


      ,
      rootElement
      );
      This is render version for react 17 (the older one)

    • @riyatomar3613
      @riyatomar3613 ปีที่แล้ว

      ​@@jacobzak7494can you please tell the changes we can made in the recent version for adding items to cart as it is not working

  • @TheHasni69
    @TheHasni69 2 ปีที่แล้ว +1

    Great job. Please gve us the source code to learn better. Thank's

  • @nchoreanthony4294
    @nchoreanthony4294 6 หลายเดือนก่อน

    source code

  • @priyatam17
    @priyatam17 2 ปีที่แล้ว +2

    Kisi ke pass source code hai kya is project ka plz

    • @Varma_academy
      @Varma_academy 2 ปีที่แล้ว

      Bhai source code mila kya ?....mujhe bhi dede mila toh

    • @saudbaig2633
      @saudbaig2633 ปีที่แล้ว

      Mere pass hai

    • @shahidlandge9876
      @shahidlandge9876 ปีที่แล้ว

      @@saudbaig2633 Bhai source code share karo na

    • @saudbaig2633
      @saudbaig2633 ปีที่แล้ว

      @@shahidlandge9876 bhai GitHub kal Mai upload karunga aur aapse share karunga ok

    • @saudbaig2633
      @saudbaig2633 ปีที่แล้ว

      @@shahidlandge9876 give me your Instagram I'd or anything were i can give u the source code

  • @abraralrawi7021
    @abraralrawi7021 2 ปีที่แล้ว +3

    why this code not work this me ...???

    • @user-hk2th4kv1g
      @user-hk2th4kv1g 2 ปีที่แล้ว

      It's not working for me either

    • @ayushjain8016
      @ayushjain8016 2 ปีที่แล้ว

      have you got the solution?

    • @sureshankem6689
      @sureshankem6689 ปีที่แล้ว +1

      For me also not working in Cart.js map function....

    • @rldotaplays6565
      @rldotaplays6565 ปีที่แล้ว

      bruh, lol. Too much coding you can't even properly write a sentence 😅

  • @adityarai8111
    @adityarai8111 2 ปีที่แล้ว +2

    total price showing NaN

    • @lewinskie
      @lewinskie 2 ปีที่แล้ว +1

      specify that price is a number..not a string

    • @quask
      @quask 2 ปีที่แล้ว +1

      @@lewinskie Thanks it was my API that had the price as a string

  • @arjunthakur3380
    @arjunthakur3380 2 ปีที่แล้ว +4

    I have the source code

    • @arpitabanik6240
      @arpitabanik6240 2 ปีที่แล้ว

      Can you provide me the source code??please!

    • @ishqbasha
      @ishqbasha ปีที่แล้ว +1

      Arjun share me scource code kindly

    • @karanpanchal9744
      @karanpanchal9744 ปีที่แล้ว

      @Mohammed Ishaque You got the source Code??

    • @jitendrakumarpatel2956
      @jitendrakumarpatel2956 ปีที่แล้ว

      Can someone please tell me whether context api is used in this video or other method ?

    • @arjunthakur3380
      @arjunthakur3380 ปีที่แล้ว

      Will post gdrive link soon