Delete Data on the Server with fetch in React

Share this video with your friends

Send Tweet

We’ll use fetch to delete items on the server when the client triggers a removal, and update the UI with a success message once the delete operation on the server has succeeded.

daniel
daniel
~ 8 years ago

Great course, definitely a nice addition to include some functional concepts and thorough test suite.

Jason Lunsford
Jason Lunsford
~ 8 years ago

Just finished your course Sir, and I must say - I very much enjoyed it. Not just for the prolific amount of technical information you taught, but also for the repetitive nature in which you executed tasks (and I mean this in a good way). By teaching us how to use Jest for TDD, how to build and implement services (including correct REST verbs), etc etc, and then repeatedly utilizing that lesson it drilled into my head HOW to get a thing done, mechanically and theoretically. I find this type of teaching very useful, much like a martial arts class. By my 10,000th punch I am starting to learn how to punch.

Anyway, I am learning React for the first time and this course has given me a ton of confidence. Thank you, keep up the good work.

Andy Van Slaars
Andy Van Slaars(instructor)
~ 8 years ago

Jason,

Thank you so much for the kind feedback. I'm really glad this was helpful for you. Good luck in your React journey!

David
David
~ 7 years ago

Thank you for this course. I'm mostly from an Angular background and trying to sharpen my React skills - your course was a good length and well explained.

Samir Medjdoub
Samir Medjdoub
~ 7 years ago

I was tempted not to watch this course as it seemed I already knew most of itscontent, but I'm happy I watched it: there were lots of pro tips, plus showing us nothing less than creating a custom router! Awesome serie: thanks Andrew!

Brian
Brian
~ 7 years ago

I just wish there was... closure :D Ended quickly but wonderful tutorial.

Mark
Mark
~ 7 years ago

Great course, well done, thank you

Kirill Bytin
Kirill Bytin
~ 7 years ago

Thank you. Great course and great inspiration on how helper functions should be organized​ and used

Adam
Adam
~ 7 years ago

Very nice course Andrew! Just one small comment regarding to temporary messages. I think it's a good practice to assign timeout to variable and remove it during unmounting component. In other case, if you unmount component before those 2500ms you will try to set state of component which doesn’t exist anymore. It may occur errors in some cases.

~ 6 years ago

wouldnt it be better to remove from state only if the server call succeeds? (simple thing...but important i think).

~ 6 years ago

great course btw! would love to see more react courses from Andrew!