This is great! Can you tell me how different this would be using vanilla JS? Keep it up man!
@josephweintraub7084 жыл бұрын
I have been following this course however this section is where I ran into my first error. When I added the in the productcard for the image I clicked on it and it brought me to the right URL but there was no content on it. However if I didn't use the link and just typed the proper URL in manually it worked perfectly fine. I also checked devtools to make sure the link was bringing me to the right place and it was. How do I fix this?
@QuentinWatt4 жыл бұрын
Perhaps the data provided to the link's prop was not correct.
@WeeGPoops3 жыл бұрын
What if my database has more information than the one I show on the products page, and I want the single product page to show this detailed info? how can I create this route to the single product page
@QuentinWatt3 жыл бұрын
Yes, of course. :) This tutorial serves as a simple "how to fetch data." It works the exact same way if you're fetching data for a single resource. Using axios you can also send a "put" request for updates or a "delete" request for deleting a product (normally shop admin only, but I'm sure you understand).
@MaxToTheMooon4 жыл бұрын
Good content, continue please. Will you handle the authentication and content creation as well in the next tutorials? It'll be great if you do.
@QuentinWatt4 жыл бұрын
Authentication is another beast to tackle. It will be a different series, I don't want that in a "beginners" playlist since it involves working with tokens and keeping those in a global state like Redux or Mobx. It would be a bit overwhelming for some (but not all) people. I'm also limited to keeping this to a 2 hour time limit if I want it free on other platforms. So by that design, this has to be a 2 hour playlist.
@diegomachado2894 жыл бұрын
how can i show my products in horizontal?
@thefaruk243 жыл бұрын
how to Fetch data from jeson array. like this {"data":[{"id":132,"name":"Analog Black Dial Men's Watch-32-BK-CK"}],"success":true,"status":200}