Originally posted on Twitter as a thread: https://twitter.com/hexrcs/status/1185186492982943744
Huge Update: Video Version Now Availab...
For further actions, you may consider blocking this person and/or reporting abuse
OMG! This post was amazing! After finishing the official Svelte tutorial, I can tell that you managed to cover many important topics with very few words!
Thanks! We need to start talking more about Svelte and the message behind the framework
Thanks a lot for the kind words! Glad you liked it! 😄
More Svelte users, better ecosystem 😄
Very nice visuals! That help a lot to grasp the concept you explain very quickly! Great job!
Thanks! 😁
Hello! Thanks for the great article!
If I understand correctly, there is a typo here.
I think that "Setting a prop is just like doing regular HTML." should be "Setting a prop is just like doing regular JS".
Hi, it's actually not a typo. What I meant was setting props in regular HTML
<img alt="Nice image" src="nice-img.jpg">
(image tag withalt
andsrc
prop/attribute) is exactly the same in Svelte's template.I've got it.Thanks!
Thanks for creating this post! Reactive Statements remind me of the useEffect hook in React
Yes! But if you are using it to set derived states, you don't have to specify the dependencies manually.
Could you elaborate on setting props, in example 5? You export dark, so you can set it? But you set color, not dark. It's the one thing I don't understand
Thanks for asking, I see I should have made it more clear there.
So we are dealing with 2 components here, a simpler componentCoolDiv.svelte
(whose code is not shown), and the component we are looking at. Let's say it's calledCoolDivWithText.svelte
. All the code shown here belongs toCoolDivWithText.svelte
.Thedark
prop is onCoolDivWithText
whilecolor
prop is onCoolDiv
.CoolDivWithText
wraps aroundCoolDiv
; instead of offering arbitrary color options, we limit it to only allow dark theme or bright theme.(I'm thinking of remaking this example)Edit: I've updated the image in the article. Here is the original one this comment was talking about.
I'm just totally new to Svelte, but I really like this approach to crash-course.
Glad you liked it! I'm also working on a GraphQL crash course, which I will publish soon.
I updated the 5th pic, by the way. Hopefully, it's less confusing this time.
Sometimes we can become biased and miss the readers' point of view. It's hard to unlearn stuff. 😛 Thanks for pointing it out!
Great work! Best presentation of the "get started with svelte" ive found on the internet. Congrats :)
Awe, thanks so much!
Das ist toll!
Nice read.
It would be great to have you join the Svelte JS developers group on LinkedIn.
linkedin.com/groups/10473500
Thanks, joining the group! (I'm not very active on LinkedIn though 😛)
Thanks, this article is exactly what I was looking for :)
Its a hot topic lately but it doesnt bring anything significant to the table.
Speed, fully reactive state management, much smaller bundle size, write less code to do more? 😉
Yes. Thats what we already have with the popular frameworks.
Aside from that i appreciate you trying it out and letting us know what it can do.
Svelte has very good performance. If somebody wanted to make a hybrid app, this framework is a strong pick, as hybrid apps with popular frameworks often have visible performance issues.
This the tutorials I like. Short, clean and most important, useful!
Great write up. This should be considered the pre-tutorial. A nice 10,000ft view before diving into the nitty gritty.
This was an awesome post!!, wish I learned everything this way. Perfect crash course!
Svelte is very appealing but what about meta data?