JavaScript Destructuring & The Rest Operator

preview_player
Показать описание
Confused on Array Destructuring, Object Destructuring & The Rest Operator? Look no further! This 10 min video goes into depth on all three topics. We also go through real world React JS examples of using destructuring. A lot of the time, the useState hook seems like "magic" - but - its just using the destructuring method! Luckily, when es6 came along, destructuring/the rest operator were added to JS. It helps us so much. It helps with code clarity and beyond. Stay tuned for this tutorial all about it!

Please let me know if there is anything I can go into detail more on array/object destructuring. Happy to make another video to help!

00:00 Intro
00:20 Array destructuring
02:25 Array destructuring w/ the rest operator
03:10 The rest operator to make a copy of an array
03:47 Array destructuring: React example
04:35 Object Destructuring
07:36 Object Destructuring React Example
08:20 Object Destructuring w/ the Rest Operator
09:00 The rest operator to make a copy of an object
09:32 Outro
Рекомендации по теме
Комментарии
Автор

Up until I saw this video, I didn't understanding destructuring at all. This is such a good way of explaining! Love the Pokemon example!

RoyalOcean
Автор

I've written a ton of JS and React, but I don't come from that background. Destructuring definitely always just seemed like black magic to me (I didn't even know it had a name!). This video explained it really clearly, and now I will write better JS, thanks!

nickavv