How object destructing can help you to write cleaner code

As a developers we always aim to write cleaner and more maintainable code. I was working on a project the other day and as most of developers we tend to get data from our backend and render it on our frontend.