How to load script in react component

前端 未结 5 1813
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 16:45

I am having following script file



        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 17:06

    After a lots of R&D finally I found my solution.

    I have used npm postscribe to load script in react component

    postscribe('#mydiv', '')
    

提交回复
热议问题