Answers for "reactjs change window name"

1

reactjs change window name

import React, { useEffect } from 'react'
import ReactDOM from 'react-dom'

const App = () => {
  // This effect runs once, after the first render
  useEffect(() => {
    document.title = "This is a title"
  }, [])
  
  return <h1>Hello, World!</h1>
};
Posted by: Guest on July-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language