Answers for "how to add a title on your page in react js"

3

change title react

import React from 'react'
import ReactDOM from 'react-dom'


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

  render(){
    return(
      <b> test </b>
    )
  }
}

ReactDOM.render(
  <Doc />,
  document.getElementById('container')
);
Posted by: Guest on May-15-2020

Code answers related to "how to add a title on your page in react js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language