Multiple videojs players in the same react component
1
Working on react app (Step-By-Step Assembly Instructions), showing onClick some movies. Any step could contain 1 to 6 movies. Can't map movie paths (sources) to multiple videojs players. I would like to dinamically show some movies in react component using videojs. I'm using example ( https://docs.videojs.com/tutorial-react.html ) from videojs as a template. Everything work just fine with a static scene - separate 'videoJsOptions' with sources known in advance, and separate components... When I'm trying to dynamically create VideoPlayers within the map or foreach, I have a problem's trying to create const in every step of the loop. E.g. how to create dynamic const's name... So, could anybody help me - how to map movies from the state? {this.state.movies.map(themovie => { ...