I am trying to dynamically output some video content using an api (jwplayer). The api returns me some data to put in a script tag for instance: .js">
This tag works perfectly with plain html, but doesn't work with react jsx. How can I use this with a react component?
Try this package
react-jwplayeron npm just add your videoId to that component.import JWPlayer from 'react-jwplayer'; <JWPlayer videoId="<your-id-here>" />