Closed jweb89 closed 1 year ago
Start a new pull request in StackBlitz Codeflow.
Gonna work on a fix! but notice className
is deprecated and we might drop support, please use class!
Yes I've seen. Unfortunately, we have a large code base that was migrated from react. It's something we've been slowly chipping away at
We have a new eslint rule now that can auto fix it!
Okay nice! The other problem is we do share some lite components between qwik and react. Unless we break react rules and use class or continue to use className in qwik we won't be able to share those easily anymore
Fixed by https://github.com/BuilderIO/qwik/commit/47d159ae8c5b5a4142bcdfabe48fcd771c0459b2
But I would really encourage you to use class
, className we fallback to a slow path for rendering
Which component is affected?
Qwik Runtime
Describe the bug
className is not working because it shows in the html as className
Reproduction
https://stackblitz.com/edit/qwik-starter-9bpwga?file=src%2Froutes%2Findex.tsx
Steps to reproduce
See the difference in the table class vs className and inspect the html
System Info
Additional Information
No response