export default class extends Component {
render() {
return (
<div>
{
/***
* enter the code here
*/
}
</div>
)
}
}
export default class Tabsshow extends React.PureComponent {
constructor(props) {
super(props);
this._ref = React.createRef();
}
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-ENCODED SETTINGS STRING FROM EMBED CODE */
this._ref.current.appendChild(script);
}
render() {
return(
<div class="tradingview-widget-container" ref={this._ref}>
<div class="tradingview-widget-container__widget"></div>
</div>
);
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With