Closed srounce closed 5 years ago
Could you please add what is wrong
in description?
Could you please add what is wrong in description?
Ugh didn't realise I'd overwritten the post intro.
I don't think this is fixed.
I tried the latest version and current behaviour is as follows:
%div.{styles.lolwut}
yields:
<div className={styles lolwut}></div>
expected:
<div className={styles.lolwut}></div>
Which editor works with such behavior?
I'm using (neo)vim. I only use emmet-vim so I don't know if any other zencoding/emmet-like plugins (for vim or other editors) implement this behaviour correctly for JSX classNames.
What is wrong
Cannot address sub-keys via JSX className (
element.{object.className}
) in the same way we are with attributes.(Works) Value:
yields
(Works) Object lookup in attributes
yields
(Doesn't work) Object lookup in className
yields
expected