smashingboxes / web-boilerplate

A template for new front-end projects.
3 stars 2 forks source link

Move routes into a directory #57

Closed dkniffin closed 6 years ago

dkniffin commented 7 years ago

With react-router v4, routes can live in multiple files. I think it'd be good to have a routes folder, with an index.jsx that is pretty much what the Routes.jsx file is now. Then, it can import other route files in that directory for sub-routes.

leeallen337 commented 6 years ago

I like this idea and I'm doing this on roamd-fe. I'm adding it to https://github.com/smashingboxes/web-boilerplate/issues/64