One small correction: href={href} and href="{href}" both work. They are treated the same way by the Svelte compiler. Using quotes is helpful if you want just one part of the attribute to be dynamic, like href="https://example.com/{path}".
Good to know that, the templates strings are good to use inside TS or JS code, but inside HTML I think this way better, almost identical to Python f-string
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One small correction:
href={href}
andhref="{href}"
both work. They are treated the same way by the Svelte compiler. Using quotes is helpful if you want just one part of the attribute to be dynamic, likehref="https://example.com/{path}"
.Good to know that, the templates strings are good to use inside TS or JS code, but inside HTML I think this way better, almost identical to Python f-string