by zV62drdTw6CM · 1y ago · 0 comments
I believe Svelte was developed by Rich Harris at the NY Times for this very reason.
We ended up using iFrames, so other frameworks like React could have been used.
Second, Svelte is very well suited for these small interactives because it has built-in state, transitions, and reactivity with low overhead.
Third, it was a personal choice, as I now do most of my work in Svelte.
Wait, wasn't one of the original selling points of React that it could be embedded piecewise to enhance interactivity of the parts of pages that needed it? It should certainly not need a separate page!
You definitely can do it (I've done it myself including SSR hydration) but it was a massive pain to do.