halfnelson/svelte-native

Support Svelte conditional classes

jasongitmail opened this issue · 0 comments

I noticed that Svelte's conditional classes like class:selected={$foo === 'abc'} are not supported. Using this causes a build error.

I've worked around this pretty easily using:
class={"foo bar" + (isSelected ? ' selected' : ' ')}

So maybe it's not worth supporting, but fyi.

Thanks for building this!