cyclejs-community / cyclic-router

Router Driver built for Cycle.js
MIT License
109 stars 25 forks source link

How to create a nested route? #84

Closed leesiongchan closed 8 years ago

leesiongchan commented 8 years ago
const match$ = sources.router
    .define({
      '/': Home,
      '/login': Login,
      '/products': ProductsIndex,
      '/products/:productId': id => s => ProductDetails({ ... }),
    });
TylorS commented 8 years ago

Define accepts anything that switch-path does :)

leesiongchan commented 8 years ago

Thanks!