📜  反应设置页面标题 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:03.994000             🧑  作者: Mango

代码示例2
import React from 'react'
import ReactDOM from 'react-dom'


class Doc extends React.Component{
  componentDidMount(){
    document.title = "dfsdfsdfsd"
  }

  render(){
    return(
       test 
    )
  }
}

ReactDOM.render(
  ,
  document.getElementById('container')
);