Комментарии:
thanks a lot for this amazing tutorial!
Ответитьvery well explained thanks Dave
Ответитьthis is an excellent tut Mr.Gray! This is so much superior in content than all those paid courses.
ОтветитьWhy i only received id😮 when POST method, item and checked property doesn’t exist? It’s Only update Id.
Ответитьwhy is this becoming so complex for me????
ОтветитьI found this set of tutorials extremely easy to follow. Thank you so much. Just a suggestion. Are you able to use vite to create your react apps - i had to recreate the setup because i tried doing npm install to get the code to work when i downloaded it and opened the project in vs code and it took a long time and then i couldn't get it up and running . Vite is super fast
ОтветитьLoving your tutorials here in Zimbabwe
Ответитьhi Dave,there is a bug :id can't update.for example:if you delete first item,and add a new item,you'll find id is unordered,just from 2,no id 1.
Ответитьif(result) setFetchError(result) how this line of code for CRUD opperation i.e don't understand flow of code
ОтветитьBest teacher thank you Dave
Ответитьadvance congratulation for 100k
ОтветитьAWESOME !!!
ОтветитьDave in this example you were updating the UI and updating the Api. Is it the approach used in production apps or we need to update the api first and update the state. I think you did that intentionally to reduce some time consumption required for that?
Ответитьclick this link and everything will make sense
ОтветитьA lot of info to unpack.
ОтветитьDave, when I try to add item to the json server with the POST request, I am getting an error : "Unexpected token " in JSON at position 0". In my network tab , in the browser where react is opened, I can see the type of the item is 'html' and not json. Would you please tell me how to fix that ?
Ответитьconst deleteOption = {method: 'DELETE'};
const reqUrl = `${API_URL}/${id}`;
const result = await apiRequest(reqUrl, deleteOption);
if(result) setFetchError(result);
could you please explain how we are deliting here we can not getting delete with any filter array.
Nice tutorial, I have learned a lot from you! Thank you for the free tutorial. May I ask how does the apiRequest function assigned the value to the variable "result" when there is no "return" syntax for the variable named "response" inside the apiRequest? I just wanna know so I can understand how it works. I'm really confused. Thank you!
ОтветитьTruly Helpful Thankyou Master...
ОтветитьJust finished CRUD operations tutorial. Such an excelllent explantaion.
Thank you so much