helix

https://github.com/Lokeh/helix
dominicm 2021-05-05T16:34:49.054400Z

https://reactjs.org/docs/web-components.html#using-web-components-in-react > One common confusion is that Web Components use “class” instead of “className”. Does helix handle this, or do I have to do some funk? Not actually using web components, just curious.

teh0xqb 2021-05-05T19:48:34.054600Z

From the Helix docs, I found that if I passed the :class prop into my components, it would automagically translate them to :className

teh0xqb 2021-05-05T19:50:02.055100Z

See “Other special props:” subsection

teh0xqb 2021-05-05T19:51:19.055300Z

In practice, it was working until I integrated with a library that clones an element or does some more complex interaction. Then, :class was not properly replaced to :className until a second render, and I just decided to use :className as I’m anyways used to that on React (js) and don’t mind.

teh0xqb 2021-05-05T19:53:08.055500Z

I suppose, to directly address your question: I don’t know if Helix transforms class to className in those scenarios (web components), or if it should.