React Router 6 - Single Product

  Рет қаралды 14,965

Coding Addict

Coding Addict

Күн бұрын

React Router 6 - Single Product
Project Based Web Development Courses - www.johnsmilga...
React Tutorial
• React Tutorial - Funda...
React Projects
• React Projects
Source Code
github.com/joh...

Пікірлер: 34
@codebros7095
@codebros7095 Жыл бұрын
Thanks, I'm searching for this for a very long time.
@aloktamrakar9541
@aloktamrakar9541 Жыл бұрын
God bless you ❤❤ I can't express my feeling I was finding for 1 week but not found this tyle of explanation
@kaderathbun
@kaderathbun 2 жыл бұрын
God bless you, I don't think you understand how much you've just helped me.
@isidoraaxis6179
@isidoraaxis6179 Жыл бұрын
ty! I was wondering how this was done, alot more simple than i expected!
@shalomtaiwo3234
@shalomtaiwo3234 2 жыл бұрын
Thank you!!! This is so easy and better than using Axios for a small project.
@germain-dela-kobby
@germain-dela-kobby Жыл бұрын
Thanks man, I had to put some if statements in there but you saved me months of research
@sharafaoluwatobibashiru1913
@sharafaoluwatobibashiru1913 Жыл бұрын
I'm getting an error you can not destruct a property of img as it's undefined. Can you help with I you were able to solve yours🙏🙏🙏🙏🙏
@sharafaoluwatobibashiru1913
@sharafaoluwatobibashiru1913 Жыл бұрын
Don't worry I just figured it out Thanks 🙏
@saalehsps5777
@saalehsps5777 Жыл бұрын
@@sharafaoluwatobibashiru1913 how did you resolve it I keep getting it aswel
@rowanminor5568
@rowanminor5568 Жыл бұрын
First off this has helped me tremendously. Thank you so much for this video. Secondly how would I do this if I had to fetch data from an api using react hooks?
@Clawsn
@Clawsn Жыл бұрын
Very helpful, thank you so much. But how would you handle if no id exists from the API?
@luisoteyza3566
@luisoteyza3566 Жыл бұрын
well explained, thank you so much!
@parastak2469
@parastak2469 6 ай бұрын
thank you sir for this great explanation , i can finally able to remove an error after saw this video , thank you so much sir again
@sebastianurbaniec9225
@sebastianurbaniec9225 2 жыл бұрын
Very well explained. Thank you
@saalehsps5777
@saalehsps5777 Жыл бұрын
I’m also getting undefined I have even copied the code and still getting it any help please
@andriibibik39
@andriibibik39 Жыл бұрын
it's a cool dude :) thanks!
@dhearamdani6945
@dhearamdani6945 11 ай бұрын
Thank you so mutch ❤❤❤❤❤❤
@Abil15
@Abil15 7 ай бұрын
Its working 👍
@italoibismar8479
@italoibismar8479 Жыл бұрын
Thank you!!! How to redirect route with id to not found if id doesn't exist in react router??
@neerajdeori1057
@neerajdeori1057 Жыл бұрын
Thank you
@Ariesss_
@Ariesss_ Жыл бұрын
i have tried to fix this but i am also getting the error where it cannot destructure 'image' of 'product'
@Dominicanflow46
@Dominicanflow46 Жыл бұрын
thank your so much!
@devgan2249
@devgan2249 2 жыл бұрын
Bro, I can't destructure the products, when I find and match the id with it...any answer?..I'm stucked
@CodingAddict
@CodingAddict 2 жыл бұрын
Bro, did you try comparing your code to the source code?
@devgan2249
@devgan2249 2 жыл бұрын
@@CodingAddict its works now, I am just using params Name different..
@Ariesss_
@Ariesss_ Жыл бұрын
@@devgan2249 i have also tried to fix this but i am also getting the error where it cannot destructure 'image' of 'product', any help?
@saalehsps5777
@saalehsps5777 Жыл бұрын
@@Ariesss_did you sort it if so how
@timiawoniyi5168
@timiawoniyi5168 Жыл бұрын
If the data was external, is it with fetch/axios we will use to keep fetching?
@CodingAddict
@CodingAddict Жыл бұрын
I'm sorry but I don't follow
@timiawoniyi5168
@timiawoniyi5168 Жыл бұрын
@@CodingAddict oh alright, let me explain: So, you used find to search through your local data and used the productId as Param for the URL to display a single product page right? Now, I am actually currently facing a headache with an ecommerce site, I am a newbie, so pardon. From the home page where there are lists of products, I want to be able to click one of them and go to a more detailed page about that particular product, yeah.. The data I am getting my product from is not local, it's an external data whereby I am using FetchApi. Now, how do I display that individual product in a new page with its own details alone? Do I have to always make Request through the API on every single product I want to get more info about? I hope it's a lot clearer now?
@CodingAddict
@CodingAddict Жыл бұрын
Sort of. github.com/john-smilga/react-projects/tree/master/15-cocktails/final
@tigerwoods8022
@tigerwoods8022 2 жыл бұрын
Hi John is inheritance important topic in javascript for cracking interview coz I was not able to find that topic in course
@CodingAddict
@CodingAddict 2 жыл бұрын
Yes, we have entire course section dedicated to Objects and inheritance.
@tigerwoods8022
@tigerwoods8022 2 жыл бұрын
@@CodingAddict Thank You John
React Router 6 - useNavigate()
8:13
Coding Addict
Рет қаралды 13 М.
useParams - React
14:23
h3webdev
Рет қаралды 34 М.
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 15 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 2,9 МЛН
Build a Single Product View By Using Reatc.js & Commerce.js
27:35
Create a Details Page - React Tutorial 32
8:29
Caleb Curry
Рет қаралды 7 М.
React router crash course
55:54
Hitesh Choudhary
Рет қаралды 41 М.
17 React Movie Details Page | React Tutorial For Beginners
14:35
Tony Xhepa
Рет қаралды 2,8 М.
Nested Routes Tutorial - React Router Dom V6
8:38
PedroTech
Рет қаралды 108 М.