Dynamic Metadata

In the Domiex - REACT TS Admin & Dashboard Template, you can dynamically update page titles based on the active route using useEffect(). This approach ensures that each page has a unique title, improving both user experience and SEO performance.

1: Define Metadata

To change other meta tags, modify the index.html file accordingly.

<!doctype html>
    <html="scroll-smooth group" data-mode="light" dir="ltr" data-colors="default">
     <head>
        
        
            Domiex | Domiex - Premium Versatile Admin & Dashboard UI Kits Templates
        
        
        
        
        
   </head>
<body>
    
</body> </html>
2: Apply Dynamic Metadata

Now, use useEffect() to dynamically update the document.title.

import { useEffect } from "react";

export default function NewPage() {
    useEffect(() => {
        document.title = "New Page | Domiex - Premium Versatile Admin & Dashboard UI Kit Template";
    }, []);
    
    return (
        

New page.

); }
3: Test Your Implementation
  • Start the development server using yarn dev or npm run dev.
  • Navigate to different routes and observe the browser’s title bar.
  • Use browser developer tools to inspect the <title> tag inside the <head> section.
Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Hire Us
Domiex Admin & Dashboards
230+

Total Pages

5+

Layouts

11+

Application

We provide quick support withing one business day to all of our customers.

© Domiex Created & Crafted by SRBThemes.