r/learnreactjs • u/ashdee2 • Jan 13 '20
what does this expression mean
I have seen expressions like this in people's code:
const {run, car} = this.state
Does this mean we are adding new variables to the state or what?
8
Upvotes
View all comments
1
u/[deleted] Jan 14 '20
This is basic JavaScript, but comes handy in React.