This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
Using promise.all to update states
Post Body
Hello, so I was watching an interview for a mid level job and when it was time to update to states, they said it was better to do it in a Promise.all([setState1(), setState2()]) and I wanted to know how much better it was, its pros and cons... just wondering. Still a junior here
Edit:
This is the code: https://imgur.com/a/XKxWRF2
This is the interview: https://www.youtube.com/watch?v=D36HU7LpTCk&ab_channel=TheDevEnvironment
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/reactjs/com...