export default class extends Component {
render() {
return (
{
/***
This should work in your case
class App extends React.Component {
componentDidMount() {
const script = document.createElement('script');
script.src = 'https://s3.tradingview.com/external-embedding/embed-widget-market-overview.js'
script.async = true;
script.innerHTML = JSON.stringify({ /* JSON object */})
document.getElementById("myContainer").appendChild(script);
}
render() {
return(
);
}
}