Created
July 25, 2021 06:28
-
-
Save MeetMartin/b7cace64e5fb18054c69cfda0be79638 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return ({ | |
| ...state, // add everything from the previous state | |
| quote: action.payload.quote, // change quote based on payload | |
| author: action.payload.author // change author based on payload | |
| }); // return new state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment