Adding script tag to React/JSX

后端 未结 17 1115
感动是毒
感动是毒 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:29

    You can also use react helmet

    import React from "react";
    import {Helmet} from "react-helmet";
    
    class Application extends React.Component {
      render () {
        return (
            
    My Title
    提交回复
热议问题