Warning
You're browsing the documentation for an old version of Webiny. Consider upgrading your project to Webiny 5.41.x.
Can I use this?

This feature is available since Webiny v5.29.0.

What you’ll learn
  • how to add new Admin app routes

Add a Route
anchor

The simplest route registration looks like this:

apps/admin/src/App.tsx

Plugins element is necessary to make sure your route is registered after all the other application routes.

Layout component is the default Admin app layout, which contains header, navigation, etc. This allows you to control whether you want to use the Admin app layout or not. For example, a login screen doesn’t have a layout, and if you want to build such routes, you can skip adding the Layout container.

AddRoute component simply registers a route internally, but it doesn’t immediately render it. Rendering of routes is handled by Webiny, so think of this as a configuration, and Webiny will decide when the route will be rendered.