React issue - this.setState is not updating initial state prop which is an array

Hi all

Thanks to FCC and hard work, i am now a junior dev.

i lost my job due to discrimination however. Despite this, i am not giving up.

This is a problem i am currently working on.

If anyone can please review the above link and get back to me with their thoughts it would be greatly appreciated.

Remember all, never give up!

The issue was object destructuring…

Using const {items] = response;

Fixes this.

Will leave this here just in case anyone else comes across similar problem in future.