Just begin my React learning path, noticed that destructure got used quite a lot, super handy, especially when we need to handle data which got passed from API.
// to get items const { data : { item }, status } = makeItem(); // then we cannot call data anymore, cause now we got item instead, data got destructured.
// can continue go even deeper const { data : { item : { name, size } }, status } = makeItem();
// we can re-name them by using : const { data : { createItem: item }} = await createItem(); // now createItem can be used by name of item