hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite
MIT License
1.87k stars 128 forks source link

[Question] - How to define title, meta, middlewares for React? #357

Closed sujit-baniya closed 11 months ago

sujit-baniya commented 1 year ago

Description

There's not much example for React.

I'm trying to use this plugin in react, everything works fine. But unable to define the page title, meta or middlewares like auth. Please suggest how could I do it?

Suggested solution

Add extended examples for React

Alternative

No response

Additional context

No response

Validations

hannoeru commented 11 months ago

We only provide a way to generate routes from file structure, so please check router-router's documentation for more detials.