Mastering SvelteKit with Geoff Rich | JS Drops

  Рет қаралды 14,655

This Dot Media

This Dot Media

10 ай бұрын

Level up your front-end development skills with an informative SvelteKit Training by Geoff Rich, a prominent Svelte and SvelteKit maintainer. Discover the power and efficiency of SvelteKit, a component-based UI framework that leverages a compile step for smaller and faster applications, similar to React and Vue. In the training, you'll explore routing, data loading, build optimization, form handling, server rendering, and more, while building the "Sveltunes" music browsing app to witness SvelteKit's capabilities firsthand. With seamless integration into the Vite ecosystem, expect instant refreshes, fast startups, and quick build times for a fantastic development experience.
In the form handling section of the training, Geoff introduces form actions, enabling smooth form submissions and enhancing user experience, even in scenarios where JavaScript may not be available. Learn how to use the "redirect" form action for seamless user interactions and the "use:enhance" attribute to prevent full page reloads when JavaScript is available, ensuring smoother performance.
The session management and login functionality are next on the agenda. Geoff explains how to manage session data and set user IDs in cookies using SvelteKit's hooks concept. Although it’s for demonstration purposes only and not for secure authentication, this functionality allows for conditional display of components based on the user's login state.
To enhance user experience further, Geoff demonstrates optimistic UI updates, instantly reflecting favorited albums without waiting for the server's response. Through the use of the "use:enhance" attribute and a custom function, users enjoy seamless interactions.
While the session couldn't cover all features due to time limitations, Geoff encourages attendees to explore the comprehensive SvelteKit documentation and tutorials, providing in-depth information on deployment, error handling, routing options, navigation, and data loading utilities.
The section concludes with a summary of the music app's achieved features, including server rendering, speedy client-side navigation with data prefetching, login functionality, and album favoriting with optimistic UI updates. Participants are invited to explore the GitHub repository and Jeff Rich's website for additional insights and articles. Don't miss out on this transformative training experience!

Пікірлер: 27
@justmrmendez
@justmrmendez 10 ай бұрын
Great content, svelte/kit should be the way to build the modern way
@attentiondeficitdisorder
@attentiondeficitdisorder 8 ай бұрын
Literally covered all the main points without making it confusing. Great stuff.
@ThisDotMedia
@ThisDotMedia 8 ай бұрын
Glad to hear it!
@fullbinky
@fullbinky 6 ай бұрын
Absolutely fantastic intro to SvelteKit. Thank you much Geoff and This Dot Media
@rumble1925
@rumble1925 4 ай бұрын
Sveltekit is an awesome way to build web apps, the only big pain point so far is the route naming convention when the app grows. Really wish I could just go for a route config file and map my screen to files. I much prefer the Rails and Laravel approach, use defaults to map to files but make it easy to switch to whatever works best for the project.
@diegovalencr
@diegovalencr 10 ай бұрын
This was clear and effective in a whole new level. Thanks!
@ObviouslyProgrammer
@ObviouslyProgrammer 10 ай бұрын
Thank you! That preload thing got to me and now I wanna try SvelteKit even more
@dukeselwood
@dukeselwood 4 ай бұрын
Great run through. Exactly what I was looking for
@riendlyf
@riendlyf 10 ай бұрын
Good overview, very clear explanation, thank u guys
@crstnio
@crstnio 8 ай бұрын
I don't know exactly what it is, but Geoff is a fascinating person to me.
@hayrankun
@hayrankun 10 ай бұрын
Awesome as always
@ThisDotMedia
@ThisDotMedia 10 ай бұрын
Thanks Yousuf!
@dosxmainyt9245
@dosxmainyt9245 7 ай бұрын
So good! Very well explained. Thank you so much.
@johnpeap
@johnpeap 10 ай бұрын
Thanks, very helpful!
@EladYosha
@EladYosha 9 ай бұрын
Very helpful, thanks. Just to understand better, where does server rendering happens? If I build a static site and have a load function on server page what sveltekit is using as "server"? Thanks!
@henrikvilhelmberglund
@henrikvilhelmberglund 9 ай бұрын
at build time (prerendering) if you're using the static adapter.
@EladYosha
@EladYosha 9 ай бұрын
Thanks, but then the content is static as it is prerendered in build time. So I guess for true server app with real time content I ill need to build with node adapter. Elad
@boot-strapper
@boot-strapper 9 ай бұрын
this dude looks so young. Talk about a way to make me feel old.
@mattz_zeref
@mattz_zeref 10 ай бұрын
can we save components on lib folder ? lib/compoenets/any compoenet.svelte
@geoffrich5528
@geoffrich5528 10 ай бұрын
Yes, you can put whatever you want in the lib folder and it will be available to import via $lib. So if you create `lib/components/Banner.svelte` you can import that component anywhere in your app with `import $lib/components/Banner.svelte`
@drivebuss8079
@drivebuss8079 10 ай бұрын
may i ask of how nuch rich rich is?
@mintez1196
@mintez1196 10 ай бұрын
HI, guys have you got any idea how to do real time validation for inputs example email or password?
@scaffus
@scaffus 10 ай бұрын
You could do some validation client side with on:change on your inputs and do stuff from there, but don't forget to also do validation server side.
@scaffus
@scaffus 10 ай бұрын
see 57:55 for server side validation example
@acharafranklyn5167
@acharafranklyn5167 9 ай бұрын
Nice video, learnt new things but where is the git link
@blessdarah1256
@blessdarah1256 9 ай бұрын
Rich Harris, then Jeff Rich! I think I need to change my name....
SvelteKit is my mistress
4:19
Fireship
Рет қаралды 412 М.
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 22 МЛН
SvelteKit | Mongodb connect | using projections to get data faster!
19:47
Consulting Ninja
Рет қаралды 3,3 М.
React VS Svelte...10 Examples
8:35
Beyond Fireship
Рет қаралды 525 М.
Playwright Tutorial | Pass Test data as Fixtures
15:59
WishInfinite
Рет қаралды 770
Forms Will Never Be the Same
10:10
Huntabyte
Рет қаралды 51 М.
Svelte UI Libraries Have Leveled Up
12:14
Huntabyte
Рет қаралды 54 М.
Learn SvelteKit Hooks Through 6 Examples
23:55
Joy of Code
Рет қаралды 18 М.
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 97 М.
SvelteKit Authentication with Supabase
23:02
Huntabyte
Рет қаралды 34 М.
Svelte makes Drag And Drop API easy!
15:08
Antonio Sarcevic
Рет қаралды 19 М.
The Svelte Crash Course
3:39:15
Laith Academy
Рет қаралды 16 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 1,8 МЛН
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 297 М.