5 Things I Wish I Knew When I Started Using SvelteKit

  Рет қаралды 22,565

Ben Davis

Ben Davis

Күн бұрын

Пікірлер
@RikunoFilms
@RikunoFilms 8 ай бұрын
Worth noting that Svelte actually does not "need" the ecosystem react has because it already has it from a decade or two ago. React's ecosystem is so large partially because we needed to take every JS framework people worked in and "wrap" it in React for optimization and compatibility. Svelte does not need wrappers so your vanilla JS libraries just work.
@bmdavis419
@bmdavis419 8 ай бұрын
This is absolutely true, definitely should have called out in the video!
@cryptixdaemon7236
@cryptixdaemon7236 2 ай бұрын
@@bmdavis419 Probably part of the reason why Sveltkit outperforms the likes of React and even Vue even if just marginal on the latter.
@armanrozika
@armanrozika Ай бұрын
react itself doesn't need any ecosystem. You could just use react, the library, by itself and build a webapp. The core difference between react and svelte is the absence of vdom and different templating language
@s.adnansami5106
@s.adnansami5106 8 ай бұрын
3:51- This is precisely why I love Astro, you can just code in whatever framework you like and even mix-n-match. It resembles the Svelte workflow relatively closely and it does many of the things Svelte is known for as well. It's even got a built in backend for API endpoints and you showed in a recent video how to plug-in Hono.js into those HTTP handler functions very easily(which I am doing for my own project). On a side note, I just love plugging in Hono into the Astro.js backend because it really makes things flexible and in case you need to host your project in a specific way or need to change framework to let's say Next.js, it's very convenient because you don't have to rewrite your backend or modify it much.
@s.adnansami5106
@s.adnansami5106 8 ай бұрын
If you want to primarily code in Svelte and need to use React packages, Astro is great for that. Makes me wonder why despite this, you don't use it?
@jitxhere
@jitxhere 8 ай бұрын
yes I really like Astro SSR.
@bmdavis419
@bmdavis419 8 ай бұрын
I do! I have multiple sites in production using Astro
@MerkieAE
@MerkieAE 8 ай бұрын
I started learning full-stack development in like 2020ish and SvelteKit played a huge role in that. I now use NextJS at my job. All this framework based development really makes me appreciate the client and server model lol. Back when I first started, wrapping my head around what happened on the server vs client was tough. Now I pretty much got it, but I recently had a situation where I had to explain what runs where in NextJS and I had one of those moments where, as I was explaining it, I was thinking "This may be a little too complicated" lol. Also certain components like a table with a search, filter, and sort or even an infinite scrolling feed are easier to code as just client components that do an initial fetch on page load then one on every query update. Idk if this is a grass is always greener situation though
@MadeInJack
@MadeInJack 8 ай бұрын
Could you please do a compressed crashcourse of each feature to clearly distinguish what runs on the client/server (and in which use case you would do each option)? Still struggling 😭 Gotta take the time to go read the full tutorial but a video would be nice too. Thank you!
@bmdavis419
@bmdavis419 8 ай бұрын
Check back on monday :)
@MadeInJack
@MadeInJack 8 ай бұрын
@@bmdavis419 Nice birthday gift actually 🤩
@MadeInJack
@MadeInJack 8 ай бұрын
@@bmdavis419 Nice birthday gift actually! 😄
@FilipeFreire
@FilipeFreire 8 ай бұрын
Awesome video Ben! I love how SvelteKit is becoming sturdier each day that passes. Definitely my tool is choice for web development right now.
@strmchsr1537
@strmchsr1537 8 ай бұрын
You're still saying "lew-see-jah"! 😁I've been working with Sveltekit for months and did NOT know about streaming! 🤯Awesome video.
@rasibn
@rasibn 3 ай бұрын
Your channel is awesome for a svelte newbie like me
@karim-gb5nx
@karim-gb5nx Ай бұрын
1 min in the video and I have already leared something new. Thubms up
@codewithguillaume
@codewithguillaume 5 ай бұрын
This is a nice video !
@paulcalebayibaemiotokolo
@paulcalebayibaemiotokolo 6 ай бұрын
this was a really nice video...seriously
@boccobadz
@boccobadz 8 ай бұрын
Svelte ecosystem is JS ecosystem, not some weird react-way wrappers without any proper documentation. Compare Apache Echarts and how simple its usage is in Svelte vs its react wrapper which is abysmal.
@bmdavis419
@bmdavis419 8 ай бұрын
Yea I definitely should have mentioned this
@s.adnansami5106
@s.adnansami5106 8 ай бұрын
I wonder why you mix arrow function syntax and regular function syntax right at the beginning in the video with the load function file?
@s.adnansami5106
@s.adnansami5106 8 ай бұрын
ngl, Code inconsistency really gives me OCD.
@bmdavis419
@bmdavis419 8 ай бұрын
I did not even notice that lmao, I really should be better about that
@portalteam5832
@portalteam5832 8 ай бұрын
Can you do a video analyzing what kind of usage a production app is going to use on something like Vercel? Since there is so much SSR, every page view is a serverless function execution, so how does that use up your quotas?
@bmdavis419
@bmdavis419 8 ай бұрын
Yea, Insiderviz 2 launches next week so once that’s been going for a bit I’ll talk about how we keep costs down (it uses a lot of ssr in sveltekit on Vercel)
@portalteam5832
@portalteam5832 8 ай бұрын
@@bmdavis419 awesome, thanks!
@Dennis-McTatten
@Dennis-McTatten 5 ай бұрын
Great video, congrats
@gamingwolf3385
@gamingwolf3385 8 ай бұрын
Hello , ben thank you for this beautiful video , but i have one question , are runes stable to start usingg them , i know they are built as signals like in solid quick so they are really amazing
@didiercatz
@didiercatz 8 ай бұрын
the API is fairly complete according to the maintainers, but as with any alpha, it's not stable.
@bmdavis419
@bmdavis419 8 ай бұрын
The official responsible answer? No. But that has not stopped me from using them in prod
@Asher-yx9ys
@Asher-yx9ys 2 ай бұрын
@@bmdavis419 adding to this. as of today svelte 5 is production ready meaning runes are now production ready!
@skyhappy
@skyhappy 8 ай бұрын
Your opinion of SvelteKit vs. Nuxt?
@nevillebrem
@nevillebrem 8 ай бұрын
very cool video!
@adel.dev.account
@adel.dev.account 5 ай бұрын
Watching Codevolution channel is my tip ❤
@dts2716
@dts2716 6 ай бұрын
pls do a svelte tutorial!!
@efimgibsun7969
@efimgibsun7969 8 ай бұрын
Cool
@cbaesemanai
@cbaesemanai 8 ай бұрын
I picked up svelete kit about a month ago, spent some time with it and wrote a test app. I was loving it right up until I looked at what it took to deploy it. That is where I bailed out, what a mess.
@bmdavis419
@bmdavis419 8 ай бұрын
Really? I've found it to be one of the easiest of the JS frameworks to deploy, NextJS is easy on Vercel, hard everywhere else, but SvetlteKit's adapters make it pretty simple to put anywhere
@SilvestreVivo
@SilvestreVivo 6 ай бұрын
Are you serious? Deploy in Svelte is one those things that are pretty straightforward.
@nixoncode
@nixoncode 8 ай бұрын
that you should have stuck with react all along?
@readywhen
@readywhen 8 ай бұрын
hihi
@realitydesigners
@realitydesigners 8 ай бұрын
Here’s my 5 things: 1. I should of just used react. 2. I should of just used react. 3. Why didn’t I just use react? 4. I should use react. 5. I’m only using react.
@bmdavis419
@bmdavis419 8 ай бұрын
idk where all this pro-react sentiment is coming from but I generally agree. For me I still prefer sveltekit for a lot of things, but react is feeling better and better, I'm really coming around
@twd2
@twd2 8 ай бұрын
shadcn,Wow 😍😍😍...
Svelte 5 is Bigger Than You Think
9:35
Ben Davis
Рет қаралды 26 М.
Best UI Library for Svelte
16:13
Huntabyte
Рет қаралды 111 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Use Svelte 5 Snippets To Reuse Markup Without Creating Components
17:41
The Svelte Team Made the Best CLI
7:44
Ben Davis
Рет қаралды 9 М.
Svelte 5 Snippets: Revolutionizing UI Composition | Snippets Vs Slots
12:09
Fullstack Ninja Academy
Рет қаралды 2,2 М.
NextJS VS SvelteKit in 2024...
15:51
Ben Davis
Рет қаралды 17 М.
Svelte 5 Is Like React, But Better
19:33
Theo - t3․gg
Рет қаралды 82 М.
I Tried Every Svelte UI Library
20:57
Joy of Code
Рет қаралды 54 М.
The Problem with Using Layouts for Auth
7:10
Huntabyte
Рет қаралды 53 М.
How and Why I Rebuilt my SAAS App
13:24
Ben Davis
Рет қаралды 22 М.
Svelte 5's Secret Weapon: Classes + Context
18:14
Huntabyte
Рет қаралды 30 М.