Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created October 31, 2018 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/99e10c2cef2eeccb6d3379a9f67ac0ed to your computer and use it in GitHub Desktop.
Save productioncoder/99e10c2cef2eeccb6d3379a9f67ac0ed to your computer and use it in GitHub Desktop.
Update video grid with pathname and search parameters
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