Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app. Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.
Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app. Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.
How do you maintain the codebase for multiple platforms?
Thanks! I think most of my concerns are resolved by this for now:
Capacitor has an API called something like
Capacitor.isNative
. So you can tell when it's an iOS/Android or web app on the fly. I assume there is something similar for Wails.
I realized I could check if window.runtime is undefined, which is kind of similar to Capacitor.isNative or Capacitor.platform.