Syntax - Tasty Web Development Treats

From React To SvelteKit

Sep 22, 2021
Dive into the exciting world of web development as the hosts discuss switching from React to SvelteKit. They share insights on the motivation behind this transition, highlighting performance boosts and better user experiences. Challenges like server-side rendering and state management are explored, alongside the benefits of Svelte's simplicity. Discover how learning JavaScript aids this journey and the overall advantages of embracing new frameworks for future projects. Plus, a playful comparison of handling form data and some fun anecdotes about pressure washing!
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ANECDOTE

Conversion Motivation and Timeline

  • Scott Talinsky's motivation for switching to SvelteKit was a combination of React SSR issues and a planned site rewrite.
  • The entire conversion took around two months, with the hardest part being UI/UX changes, not component conversion.
INSIGHT

Apples to Oranges Comparison

  • Direct performance comparisons between React and SvelteKit are difficult for Level Up Tutorials due to key differences.
  • The switch involved moving from client-side rendering to server-side rendering and changing core dependencies, making a straightforward comparison unfair.
ADVICE

Component Conversion Tips

  • Convert React's useState to simple Svelte variables for state management.
  • GraphQL calls become direct function imports, simplifying data fetching.
Get the Snipd Podcast app to discover more snips from this episode
Get the app