From React to Svelte: A frontend for the future of work
For over a decade, I've been immersed in Javascript-based frontend development, predominantly within the React ecosystem. My experience ranges from classic React to Next.js and React Native. I was part of the pivotal transition from Backbone.js/Chaplin.js to React at Uber a decade ago and have since been a React advocate in various startups.
So it may come as some surprise to hear that when my Beyond Work interviewer asked, “If you could choose any language or framework for frontend, what would it be?” my answer was instant: “Svelte!”
Their enthusiastic response and shared vision for using cutting-edge technology in building a platform for the future of work marked the beginning of a new chapter.
Why Svelte? Well, if you’re in the frontend ecosystem, you’ve probably already heard of Svelte. It has ranked first or second on the yearly State of JS reports for both interest and retention (losing by 1% on “retention” to Solid.js) due to both its performance and overall developer experience. It provides things like state management and intuitive reactivity out of the box, and its compiler-based approach makes it wicked fast.
Fast forward four months, and our team has successfully launched the first version of our platform's frontend using Svelte and SvelteKit. Here’s what I've learned:
Recommended by LinkedIn
It’s never all roses: To be honest, it’s difficult to find much to complain about with Svelte, but there have been a few gotchas:
The future of the future: When it comes out, Svelte 5’s Runes introduce some exciting (and controversial) new features and concepts – most notably consolidating reactivity into both Svelte components and plain Typescript/Javascript files.
The great beyond: This journey has been more than just learning a new technology. It's about embracing change, which is crucial if we’re going to build a future Beyond Work. For anyone considering a switch or simply curious about the evolving landscape of frontend development, exploring Svelte will be both enlightening and empowering. Thankfully, Svelte’s documentation, tutorial and REPL (and the same for SvelteKit, the companion web app framework) make it easy to get started.
Have you experienced a similar transition, or are you considering one? What are your thoughts on the future of frontend development in tech startups? Feel free to share your insights, questions, or experiences in the comments below.
Building software
1yVue should have been a consideration if you wanted larger ecosystem? Also, can you expand on why you didn't go the SolidJS route (as it is still faster until svelte 5 is released) ?
Development Manager & Solution Architect at Leo Express Entrepreneur with C level experience Node and Java expert since 2000
1yI also moved from JSP(2000) to JSF (2003) to GWT(2007) to Angular(2016) to React(2017) to Svelte(2021), and Svelte is by far the most smart UI system I've ever seen. The elegance of using Html attributes to do almost everything is elegant and strait to the point. Thanks for this article, will have to write about my experience too.
Senior Frontend Engineer | JavaScript | React | Typescript | Next JS | A11Y
1yAmazing article! Can you elaborate on the specific advantages you've found with Svelte, especially in terms of reactivity and state management?