import useDocumentTitle from './useDocumentTitle' function Component() { // use your counter state here useDocumentTitle(counter) return <div>...</div> } // solution: https://codesandbox.io/s/usedocumenttitle-hr44p
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter