Skip to content
Zuby.js is archived and no longer actively maintained.

JSX provider API

The Jsx Provider is special object that provides integration with JSX libraries and instructs Zuby.js how to render the components. It also contains default templates such as layout.jsx, error.jsx, app.jsx etc…

JsxProvider is configured under jsx option of the ZubyConfig in zuby.config.mjs file.

The section describes all properties of JsxProvider type.

The name of the Jsx Provider.

  • Type: string
  • Required: true

A method that returns an array of Vite plugin options.

  • Type: () => VitePluginOption[] | VitePluginOption[][]
  • Required: true

The file used for rendering.

  • Type: string
  • Required: true

The default app.jsx template file.

  • Type: string
  • Required: true

The entry template file.

  • Type: string
  • Required: true

The default layout.jsx template file.

  • Type: string
  • Required: true

The inner layout template file.

  • Type: string
  • Required: true

The default error.jsx template file.

  • Type: string
  • Required: true