Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- componentWillMount() {
- var script = document.createElement('script');
- script.onload = function() {
- this.setState({loading:false});
- }.bind(this)
- script.src = getApiPath() + "/" + this.props.component.assetId;
- document.head.appendChild(script);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement