hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sujit-baniya opened this issue · comments

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

  • Follow the Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

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