-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Describe the bug
Currently, the docs on svelte class directive state:
Unless you’re using an older version of Svelte, consider avoiding
class:, since the attribute is more powerful and composable.
Upon requesting the cli maintainers to work on a migration script, the svelte team member said that perhaps the docs is pushing the new syntax a bit too much and may require clarification.
As I do not have the data or heuristics to know if and when there is noticeable differences in performance or DevEx, it seems best for a maintainer to edit the docs in one or two sentences to clarify the future of class:directives, performance gains/losses, and whether this is opt-in or the new norm.
A starting point could be
You can opt-in to the more powerful and composable attribute syntax above. There is currently no plan to deprecate the directive syntax.
Reproduction
N/A
Logs
System Info
N/ASeverity
annoyance