I thought destructuring is only for array because of using react. Now I know we can destructure even with object. Cool.
@hayk.simonyan7 күн бұрын
Yes destructuring is super handy with objects as well. You’re probably familiar with array destructuring when using useState in React, but it's also very common to destructure component props which is an example of object destructuring.
@shafiq_ramli7 күн бұрын
@@hayk.simonyan Oh so I've also been using object destructuring all this while with prop. Still got a lot to learn 💪🏻