Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
};
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #reactjs #change #window
ADD COMMENT
Topic
Name
6+6 =