Adding script tag to React/JSX

后端 未结 17 1106
感动是毒
感动是毒 2020-11-22 03:52

I have a relatively straightforward issue of trying to add inline scripting to a React component. What I have so far:

\'use strict\';

import \'../../styles/         


        
17条回答
  •  無奈伤痛
    2020-11-22 04:36

    You can use npm postscribe to load script in react component

    postscribe('#mydiv', '')
    

提交回复
热议问题