Last active
November 11, 2020 21:48
-
-
Save kristianpedersen/3e8ed41e827687ba28659df866033256 to your computer and use it in GitHub Desktop.
If prop name and value are the same
This file contains 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
// Boring :c | |
{songs.map(song => <LibrarySong setCurrentSong={setCurrentSong} song={song} />)} | |
// Fun and cool! :D | |
{songs.map(song => <LibrarySong {...{ setCurrentSong, song }} />)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice ;-)