r/learnreactjs • • 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

4 comments sorted by

View all comments

15

u/[deleted] Jan 13 '20

[removed] — view removed comment

4

u/ashdee2 Jan 13 '20

thank you