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

  Рет қаралды 119,568

Code&Coding

Code&Coding

2 жыл бұрын

In this video, You will learn to create a shopping cart using ReactJs.

Пікірлер: 128
@LuksFay
@LuksFay Жыл бұрын
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
@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 10 ай бұрын
Such an amazing video. You are so underrated bro. Keep growing :)
@maryamebadi94
@maryamebadi94 2 жыл бұрын
it was really good,i learned alot from your video,thanks alot.💐
@fangamer6666
@fangamer6666 9 ай бұрын
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.
@De_Bryan
@De_Bryan 2 жыл бұрын
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 Жыл бұрын
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.
@reactjswithsid6779
@reactjswithsid6779 2 жыл бұрын
thanks for this video and keep uploading such type of videos and try to upload a its backend using NODE js
@girishpandey9976
@girishpandey9976 2 жыл бұрын
Thanks for your valuable project for us to make us more expert
@contentking55
@contentking55 2 жыл бұрын
You are welcome. Please help us to grow by subscribing our channel. 😊
@javicrowley
@javicrowley 2 жыл бұрын
MASTER !!! thank u !!!
@shashwattulsyan8522
@shashwattulsyan8522 2 жыл бұрын
can you please make a separate tutorial for how to store fields and files in mongdb(MERN).
@krazykalai5057
@krazykalai5057 2 жыл бұрын
sir ur way of teaching is understable. please make more video about reacjs projects.
@mariaclarasimoes_
@mariaclarasimoes_ 5 ай бұрын
Greetings from Brazil! Amazing video :)
@sanabila_0970
@sanabila_0970 Жыл бұрын
love it!
@saharabanu2699
@saharabanu2699 2 жыл бұрын
It's really helpful.
@user-li4tj6zr6o
@user-li4tj6zr6o 4 ай бұрын
very good effort to the point
@SarathAppu-rd3xm
@SarathAppu-rd3xm 3 ай бұрын
great one bro👍
@jamesr2408
@jamesr2408 18 күн бұрын
@ 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.
@mehdihasan2827
@mehdihasan2827 2 жыл бұрын
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 2 жыл бұрын
I've already made a video on signup form validation. You can check the video on kzbin.info/www/bejne/jae1qJx7bq6efMk
@giorgikiladze1151
@giorgikiladze1151 Жыл бұрын
thank you was helpful
@saudbaig2633
@saudbaig2633 Жыл бұрын
Can I use this add to cart feature to mern stack web development?
@NicolasCruzCarpio
@NicolasCruzCarpio Жыл бұрын
Ahora Switch se usa como 'Routes' y products se usa asi:
@BGMAnirudh..
@BGMAnirudh.. Жыл бұрын
Ty bro
@celticspyd5887
@celticspyd5887 Ай бұрын
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?
@jitendrakumarpatel2956
@jitendrakumarpatel2956 Жыл бұрын
Can someone please tell me whether context api is used in this video or other method ?
@reactjswithsid6779
@reactjswithsid6779 2 жыл бұрын
plz make a video for user Registration and sign in process in react js
@kunal9948
@kunal9948 8 ай бұрын
I have problem my images are not displaying on the screen The names are displayed
@jacobzak7494
@jacobzak7494 Жыл бұрын
Cart clears when you reload the webpage. Why and how to prevent this?
@HeadbangingChannel
@HeadbangingChannel Жыл бұрын
Is there any source code to study this better
@scarlatybonfim1461
@scarlatybonfim1461 Жыл бұрын
Thank you very much!!!!!!!!!!!!!!!!!!!! you are very necessary
@nzilaikouaramartsiamonange9707
@nzilaikouaramartsiamonange9707 Жыл бұрын
Merci infiniment 🙏🙏🙏
@tubeyou9007
@tubeyou9007 Жыл бұрын
Are you using redux in it?
@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
@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??
@amandevs
@amandevs Жыл бұрын
Thank you 👍
@glitchy_midnight245
@glitchy_midnight245 2 жыл бұрын
hi , Can I ask u a question plz
@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 Жыл бұрын
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 9 ай бұрын
​@@width19is ur error resolved??
@YashKumar-lq1ed
@YashKumar-lq1ed 2 жыл бұрын
Sir source code milega kya
@01_lethanhan89
@01_lethanhan89 2 жыл бұрын
Error: cartItems is not a function. Help me
@user-bv5io4pn3o
@user-bv5io4pn3o Жыл бұрын
setCartItems(...) is not a function I am getting this error in cart.js can anyone please solve my error
@gomathim9306
@gomathim9306 2 жыл бұрын
Ji..is switch working..? Switch is renamed as Routes...Help me out,Ji?
@chemiyaki
@chemiyaki 2 жыл бұрын
import { BrowserRouter, Routes, Route} from 'react-router-dom'; //this one can change to Router if you import BrowserRouter as Router
@gayatripatil1524
@gayatripatil1524 Күн бұрын
Sir mere product shoe nahi ho rahe he browser me
@cryptodev2615
@cryptodev2615 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
@arslanrana2468
@arslanrana2468 2 жыл бұрын
Quantity??? Where it come from
@carbogaming6526
@carbogaming6526 2 жыл бұрын
Sir pls give me the code
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
Great video! Where is the source code?
@venkatkosuri5224
@venkatkosuri5224 2 жыл бұрын
Hi brother Can you please send me this source code link
@pranushanaika5258
@pranushanaika5258 Жыл бұрын
Products items are not showing me
@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
@arpitabanik6240
@arpitabanik6240 Жыл бұрын
Please provide me the source code repo link!! I need it badly!
@sanyamjain4777
@sanyamjain4777 Жыл бұрын
Hey make the same app with redux toolkit 🙏🙏
@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😇
@t.harshavardhini
@t.harshavardhini 2 жыл бұрын
U have implemented code once
@t.harshavardhini
@t.harshavardhini 2 жыл бұрын
Its working write now
@bathalasaikumar1675
@bathalasaikumar1675 Жыл бұрын
If i write code and excute i didn't get output
@saudbaig2633
@saudbaig2633 Жыл бұрын
It is working bro
@C_devops
@C_devops Жыл бұрын
can any one send the source code this plz i was getting error while doing this!
@kaushikjadav5824
@kaushikjadav5824 9 ай бұрын
Source Code Link ?
@muhammadrahman376
@muhammadrahman376 2 жыл бұрын
bro! Please attach the source code to the videos
@safikarimi9623
@safikarimi9623 Жыл бұрын
Hi Sir Can you please send me this source code link
@streetmotivation
@streetmotivation 2 жыл бұрын
sir please give we teaching react js
@duongtruongcong5184
@duongtruongcong5184 Жыл бұрын
do you have source code? Please
@PavanKumar-by8dc
@PavanKumar-by8dc Жыл бұрын
For me it's showing Switch is not found in react-router-dom , and also in react-router ??
@jacobzak7494
@jacobzak7494 Жыл бұрын
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 Жыл бұрын
@@jacobzak7494 yaa but in version 6 I'm using Browser router
@jacobzak7494
@jacobzak7494 Жыл бұрын
@@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 Жыл бұрын
@@jacobzak7494 yes, mine doesnt add items to cart after downgrading. Is that the issue? How were you able to add to cart?
@skimran8646
@skimran8646 2 жыл бұрын
bro can you plz give me full code
@kalaiselvam5032
@kalaiselvam5032 Жыл бұрын
Bro I have problem
@kajalkumaribiswal8622
@kajalkumaribiswal8622 2 жыл бұрын
plz give the source code,,,,
@ramanagarnepelli2280
@ramanagarnepelli2280 2 жыл бұрын
byeee
@ilyasjabir3121
@ilyasjabir3121 Жыл бұрын
can you share the whole code please
@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?
@manavpatel7976
@manavpatel7976 2 жыл бұрын
Can you please provide git repository
@carbogaming6526
@carbogaming6526 2 жыл бұрын
Bro...did you get the github link for this project???
@franciscokataldo3707
@franciscokataldo3707 2 жыл бұрын
El ctm seco, gracias
@benchmarks1016
@benchmarks1016 Жыл бұрын
30:05
@ajeeshsaju9566
@ajeeshsaju9566 2 жыл бұрын
Product not adding to Cart plz help., someone who solve this issue
@ayushjain8016
@ayushjain8016 Жыл бұрын
have you find the solution?
@ayushjain8016
@ayushjain8016 Жыл бұрын
have you find the solution?
@jacobzak7494
@jacobzak7494 Жыл бұрын
@@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 9 ай бұрын
​@@jacobzak7494can you please tell the changes we can made in the recent version for adding items to cart as it is not working
@sadashivmahadev
@sadashivmahadev 5 ай бұрын
Very nice disgn plz send me source code
@TheHasni69
@TheHasni69 2 жыл бұрын
Great job. Please gve us the source code to learn better. Thank's
@anonymousgladiator5541
@anonymousgladiator5541 2 жыл бұрын
yea could you share it please?
@kerembabaoglu1265
@kerembabaoglu1265 Жыл бұрын
ı need the source code
@kerembabaoglu1265
@kerembabaoglu1265 Жыл бұрын
where is the source code
@shubhamaher5718
@shubhamaher5718 11 ай бұрын
code link
@priyatam17
@priyatam17 2 жыл бұрын
Kisi ke pass source code hai kya is project ka plz
@carbogaming6526
@carbogaming6526 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
@erdenetugs2958
@erdenetugs2958 Жыл бұрын
i need github source code
@abraralrawi7021
@abraralrawi7021 2 жыл бұрын
why this code not work this me ...???
@user-hk2th4kv1g
@user-hk2th4kv1g Жыл бұрын
It's not working for me either
@ayushjain8016
@ayushjain8016 Жыл бұрын
have you got the solution?
@sureshankem6689
@sureshankem6689 Жыл бұрын
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 😅
@nchoreanthony4294
@nchoreanthony4294 3 ай бұрын
source code
@adityarai8111
@adityarai8111 2 жыл бұрын
total price showing NaN
@lewinskie
@lewinskie 2 жыл бұрын
specify that price is a number..not a string
@quask
@quask Жыл бұрын
@@lewinskie Thanks it was my API that had the price as a string
@arjunthakur3380
@arjunthakur3380 2 жыл бұрын
I have the source code
@arpitabanik6240
@arpitabanik6240 Жыл бұрын
Can you provide me the source code??please!
@ishqbasha
@ishqbasha Жыл бұрын
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
React Shopping Cart For Absolute Beginners [2022]
46:24
Coding with Basir
Рет қаралды 151 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 132 М.
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 31 МЛН
The World's Fastest Cleaners
00:35
MrBeast
Рет қаралды 129 МЛН
Trágico final :(
01:00
Juan De Dios Pantoja
Рет қаралды 17 МЛН
Маленькая и средняя фанта
00:56
Multi DO Smile Russian
Рет қаралды 1,9 МЛН
I Made 200 Python Projects...Here Are My 5 FAVORITES
11:23
Tech With Tim
Рет қаралды 112 М.
Live Coding a Shopping Cart using React
31:32
Web Dev Cody
Рет қаралды 76 М.
How Shadcn/ui ACTUALLY Works
32:38
Theo - t3․gg
Рет қаралды 79 М.
Shopping Cart | React.js Project with explanation | Beginner
36:10
What happened to Rick Harrison from Pawn Stars? Tragedy
6:23
Code&Coding
Рет қаралды 1,9 М.
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 31 МЛН