Created
October 31, 2018 19:20
-
-
Save productioncoder/99e10c2cef2eeccb6d3379a9f67ac0ed to your computer and use it in GitHub Desktop.
Update video grid with pathname and search parameters
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
const gridItems = props.videos.map(video => { | |
return (<VideoPreview video={video} | |
key={video.id} | |
pathname='/watch' | |
search={`?v=${video.id}`}/> | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment