react update state array of objects. A state object can store array