page title

what is the best way in a component to render the page title attribute ?
2 Replies
multiple-amethyst
multiple-amethystOP2y ago
I'm trying to use document.title but this is not consistent among page change and I also would like to get rid of detault "refine" page title
constant-blue
constant-blue2y ago
Hey @dannywhiteagile You can use useDocumentTitle hook for dynamically chance the title tag. https://refine.dev/docs/packages/documentation/routers/react-router-v6/#usedocumenttitle
React Router v6 | refine
refine provides router bindings and utilities for React Router v6. It is built on top of the react-router-dom package. This package will provide easy integration between refine and react-router-dom for both existing projects and new projects.

Did you find this page helpful?