I've been developing a small user interface for pywal16 using vanilla web technologies and TypeScript to explore these tools more deeply. During my studies, I mostly worked with React, so this project has been a fun challenge to build things like a basic store and manage dynamic view changes without any frameworks. However, I've started questioning the benefits of sticking with a Single Page Application (SPA) approach. Managing reactivity seems too complex at times, and writing HTML directly within TypeScript feels a bit awkward. I'm considering whether switching to a Multi Page Application (MPA) would simplify things, or if I should persevere with the SPA model. What do you think?
5 Answers
If you're feeling overwhelmed with the SPA setup, trying out an MPA could lead to a better understanding and growth. It's a great way to learn without getting too tangled up in complexity!
I lean towards MPA as well, especially if you're running into issues with the SPA model. It can often be a cleaner solution, especially for projects that don't require constant updates.
You don't have to choose one or the other! You can use an MPA structure and still implement SPA-like features where necessary. Those are often called 'dynamic islands' and can give you the flexibility you need.
I'd argue that the SPA concept can be an anti-pattern in certain scenarios, so MPA could be a better fit for your needs.
For a smaller project like yours, an MPA might actually be the way to go. SPAs are great for heavily interactive apps, but if your project isn't super dynamic, going MPA could save you a lot of frustration.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically