how to change favicon react code example

Example 1: how to add favicon in html

<link rel="shortcut icon" type="image/png" href="Link to the image"/>

Example 2: 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')
);

Example 3: how to remove react icon from tab

<link rel="shortcut icon" href="/a.png" /> which should be not present by the way or try deleting the favicon