How to dynamically insert and run code in script tag in React

前端 未结 0 1778
清歌不尽
清歌不尽 2021-01-30 06:44

Here is my React component:

import { foo } from \'./foo\'

class MyComponent extends React.Component {
    componentDidMount() {
        this.initSpecialScriptTag         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题