You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This use of spread [...prevState.data.concat(userDataNew)] is effectively the same as prevState.data.concat(userDataNew). This is because concat returns a new array anyway.
The text was updated successfully, but these errors were encountered:
This use of spread
[...prevState.data.concat(userDataNew)]
is effectively the same asprevState.data.concat(userDataNew)
. This is becauseconcat
returns a new array anyway.The text was updated successfully, but these errors were encountered: