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
I'll use your signUpHandler function as an example, you write allTheData.gitterhandle 4 times in this function, and allTheData.password a couple more times.
In order to avoid writing allTheData repeatedly, you can use object destructuring.
You can use this in multiple places in your app to avoid unnecessary repetition.
I'll use your
signUpHandler
function as an example, you writeallTheData.gitterhandle
4 times in this function, andallTheData.password
a couple more times.In order to avoid writing
allTheData
repeatedly, you can use object destructuring.You can use this in multiple places in your app to avoid unnecessary repetition.
You can find an example in this repl: https://repl.it/@zooeyxmiller/destructuring-example
The text was updated successfully, but these errors were encountered: