From Svelte docs: "You can use reserved words as prop names."
Can you provide an example of when you would want to use a reserved word as a prop name? Or when it would be unavoidable?
I've never had issues avoiding reserved words for a variable name, so I'm intrigued by this particular feature. Thanks!
<div className="asdf" />
<div class="asdf" />
<label htmlFor="asdf" />
<label for="asdf" />
I'm pretty sure that bit in the Svelte docs is saying that those renamings aren't necessary in Svelte.
You're asking the newest user of Svelte so I'm really not sure. Maybe someone else has an example?
Hmm, maybe this is about class vs className?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.