Hey Ryan, it's me again. I saw a cople of thing that are not correct.
1.- the code of AppProvider.js is equal than Cart.js so that should be fixed because I'm stuck and I can't continue.
2.- Next you say "Update the _app.js and /pages/restaurants.js files to use the AppProvider/Consumer components:" but below the path is "Path: /frontend/pages/_app.js" for me that was confused.
Thanks a lot for this tutorial, I hope you fix it faster as you can and I can complete :D
Could you help me understand question #1? I am looking at AppProvider and Cart.js and it looks correct to me, am I missing something?
For #2, those are the files you will be updating to use the AppProvider. You will be moving the AppProvider and AppConsumer into those files to use the React Context API. When I write out the tutorials its difficult to write out the code being added into the file so I just try to add some context on what you will be doing. You should be able to copy/paste the whole contents of the new file into yours to get it to work
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Ryan, it's me again. I saw a cople of thing that are not correct.
1.- the code of AppProvider.js is equal than Cart.js so that should be fixed because I'm stuck and I can't continue.
2.- Next you say "Update the _app.js and /pages/restaurants.js files to use the AppProvider/Consumer components:" but below the path is "Path: /frontend/pages/_app.js" for me that was confused.
Thanks a lot for this tutorial, I hope you fix it faster as you can and I can complete :D
Hey Wilfredo,
Could you help me understand question #1? I am looking at AppProvider and Cart.js and it looks correct to me, am I missing something?
For #2, those are the files you will be updating to use the AppProvider. You will be moving the AppProvider and AppConsumer into those files to use the React Context API. When I write out the tutorials its difficult to write out the code being added into the file so I just try to add some context on what you will be doing. You should be able to copy/paste the whole contents of the new file into yours to get it to work