I would like to add or delete object to another object through react state. How can I achieve this?

code is like this:

```
const [ stateObj, setStateObj ] = usetState({
   obj1: {},
   obj2: {},
   obj3: {}
})

```

I want to add some objects temp1,temp2,temp3,... inside obj1, such as:

```
setState({ ...stateObj, obj1: {...obj1,temp1} })
setState({ ...stateObj, obj1: {...obj1,temp2} })
...

```

but this seems not correct, this keeps obj1 one item only
how can I add temp1,temp2,... into obj1 by state?
and also the method for delete temp1, temp2,...?