for example
state = {
"username": "abc",
"id": "1",
}
const {username, id} = this.state
the above code would work and get the values
is there a way to make it so below would also work
const {user, userId} = this.state
That is, get the same values as username, id but with different names. Any way to tell javascript that user means username and userId means id?