Given
this.state = {email: "something", firstName: "something" }
const name = "email"
const value = this.state[name]
I want to make a new object like this
{email: "something"}
basically without the other stuff
I tried
const new = {name: value}
This makes it {name: "something"} I want {email: "something"}
but the key doesn't attach to a variable and I want email to not be known to me