4 ms·
I use routers that aren't coupled to the view layer, thank you very much. routers can actually be pretty simple.
by boubiyeah 10y ago
I use routers that aren't coupled to the view layer, thank you very much. routers can actually be pretty simple.
- colinramsay 10y agoExample?
- deleted 10y ago[deleted]
- wesleytodd 10y agohttps://github.com/wesleytodd/nighthawk https://github.com/wesleytodd/nighthawk ^^ This is the one we developed on my team. No view coupling, uses industry standard underlying components (Express Router), and layers on top of existing applications seamlessly (aka, no view tie in points, just anchor tags).
- ChrisCinelli 10y agoWhat does it add on top of https://github.com/wesleytodd/react-express-middleware https://github.com/wesleytodd/react-express-middleware ?
- wesleytodd 10y agoThat middleware is actually just a isomorphic render method, which uses express's render on the backend and react's render on the FE. So that middleware actually requires a solution similar to what Nighthawk provides. The point was to keep the routing and the rendering separate, unlike what react router does.