react-multi-carousel-jsm
Version:
Production-ready, lightweight fully customizable React carousel component that rocks supports multiple items and SSR(Server-side rendering) with typescript.
24 lines (18 loc) • 410 B
text/typescript
const routes = require("next-routes")();
const HomePage = "/HomePage/HomePage";
const allRoutes = [
{ name: "home", pattern: "/", page: HomePage }
];
function addRoutes():any {
allRoutes.forEach((route:any) => {
routes.add({
name: route.name,
pattern: route.pattern,
page: route.page
});
});
}
addRoutes();
const Link = routes.Link;
export default routes;
export { Link };