Hey folks! I'm currently working on a project that's built with plain vanilla JavaScript and minimal libraries. I'm aiming to modernize the repo, and a big part of that is transitioning this multi-page application (MPA) to a single-page application (SPA). This is a massive undertaking, but to start, I'm looking for recommendations on vanilla JavaScript-friendly routers. Ideally, I'd like something that can also be compatible with React or Vue later on, so I won't have to reinvent the wheel when I move to that stage. Any suggestions? Thanks a ton!
1 Answer
Honestly, you might want to just stick with server-side routing for now. Transitioning from MPA to SPA can cause you to miss out on certain benefits, and it’s not always worth it unless you really need client-heavy interactions. Refactoring just the pages that require it using something like Preact could be a good compromise instead.
Haha, it's funny you say that since some say you miss out on benefits by **not** going the SPA route!