I have two arrays, one with urls and one with content. They look like this:
const link = [ 'www.test0.com', 'www.test1.com', 'www.test2.com' ] const content = [ 'this is test0 content', 'this is test1 content', 'this is test2 content' ] How can I map over both arrays at the same time and use their value in my newly created element?
I need to use the value of the url for my reactplayer and the the value of the content as the text underneath the player.
So it should look something like this:
<Reactplayer url"link0" /> <ControlLabel>content0</ControlLabel> Is this possible? And what would be a better way of setting this up?