Show HN: Forget about React Router. Modern and clean routing with hooks
parastudios.de
parastudios.de
I especially like the explicit url parameter passing vs. others where it just magically shows up in your component.
Similar to another commenter, it never seemed quite natural to me to define routes in jsx. Your solution looks more like a server-side routing table and I appreciate that!
On a certain page my user is filling out a form, and I want to confirm before they can leave, to prevent loss of unsaved data.
I think it would be better if this was baked into the package somehow. I'd want something simple where you could set it for a whole page and it applies to children and parents. I also would prefer to be able to pass any function, in case window.confirm() isn't good enough.