This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
Use the spread operator to conditionally create the settings object #447
Labels
good first issue
Good for newcomers
In JavaScript, it is a quite common thing to conditionally add key-value pairs to objects. This can be done using
if
statements as in thehandleCreateCode()
method in the CreateInboxCodeDialog component.However, the spread operator allows to do the exact same thing sometimes a little less verbosely.
The spread operator should be used in the
handleCreateCode()
method to create thesettings
object as described in this issue, which is definitely a good first issue to get to know the codebase.Keep it up, and happy learning!
The text was updated successfully, but these errors were encountered: