4 ms·
Great! I removed React router from a project yesterday, now it seems an even better decision. Edit: I didn't have any big issue with React router and don't dis
by meira 10y ago
Great! I removed React router from a project yesterday, now it seems an even better decision.
Edit: I didn't have any big issue with React router and don't dislike it. It just don't work well with clojurescript/rum. I'm now using a cljs lib called 'bidi' for bidirecional routing (data only) and a small logic to change content reactively based on selected route.
- marshallford 10y agoI'm curious, did you replace react-router with something else or are you managing the url "manually"?
- meira 10y agoWith a tiny cljs lib (bidi) and some 10 lines of code to change content reactively
- tptacek 10y agoSame! react-router is the only thing I've dealt with in this ecosystem that I truly, viscerally disliked.
- deleted 10y ago[deleted]
- kbeckmann 10y agoWhat are you using instead, can you recommend a nice alternative?
- wesleytodd 10y agoMy team uses this: https://github.com/wesleytodd/nighthawk https://github.com/wesleytodd/nighthawk Basically it is just the Express router wrapped with logic from Page.js for catching link clicks and what not. We do universal rendering with a simple middleware and share all our middleware, rendering and route definitions on both the FE and BE.