Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
public
src
.gitignore
README.md
package.json

README.md

Multi body example

CodeSandbox demo

Sometimes, you may want to have multiple components attached to a route. When this is the case, all you have to do is set an object instead of the specific component.

import { HomeMenu, Home } from './components/Home';

{
  name: 'Home',
  match: {
    response() {
      return {
        body: {
          main: Home,
          menu: HomeMenu
        }
      };
    }
  }
}