component-slider
Version:
used to show react components in carousal format
27 lines (19 loc) • 423 B
JavaScript
import React from 'react';
import App from '../components/App';
// Child routes
import home from './home';
import error from './error';
export default {
path: '/',
children: [
home,
error
],
async action({ next, render, context }) {
const component = await next();
if (component === undefined) return component;
return render(
<App context={context}>{component}</App>
);
}
};