DEV Community

loading...

Discussion on: ⏰ Svelte Crash Course (in 10 pics!)

Collapse
dmitrykurmanov profile image
Dmitry Kurmanov

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".

Collapse
hexrcs profile image
Xiaoru Li 🇨🇳🇩🇪 Author

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 with alt and src prop/attribute) is exactly the same in Svelte's template.

Collapse
dmitrykurmanov profile image
Dmitry Kurmanov

I've got it.Thanks!

Forem Open with the Forem app